Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Mar 28th, 2010  |  syntax: Bash  |  size: 2.83 KB  |  hits: 263  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Heiko Baums <heiko at baums-on-web dot de>
  2. # Contributor: Kurt J. Bosch <kjb-temp-2009 at alpenjodel dot de>
  3.  
  4. pkgname=fbsplash
  5. pkgver=1.5.4.3
  6. pkgrel=31
  7. pkgdesc="A userspace implementation of a splash screen for Linux (formerly known as gensplash)"
  8. arch=('i686' 'x86_64')
  9. url="http://fbsplash.berlios.de"
  10. license=('GPL')
  11. depends=('miscsplashutils' 'freetype2' 'libjpeg' 'libpng' 'libmng' 'lcms' 'gpm')
  12. optdepends=('kernel26-fbcondecor: enable console background images'
  13.             'initscripts-extras-fbsplash: boot/shutdown with fbsplash'
  14.             'uswsusp-fbsplash: suspend to disk with fbsplash'
  15.             'python: convert themes from splashy to fbsplash')
  16. backup=(
  17.   'etc/splash/splash'
  18.   'etc/conf.d/splash'
  19. )
  20. options=('!makeflags')
  21. install=fbsplash.install
  22. source=(
  23.   http://dev.gentoo.org/~spock/projects/gensplash/archive/splashutils-${pkgver}.tar.bz2
  24.   fbsplash.git.patch
  25.   splash.conf
  26.   fbsplash.initcpio_install
  27.   fbsplash.initcpio_hook
  28.   fbcondecor.conf
  29.   fbcondecor.daemon
  30. )
  31. md5sums=('c722cd4148817b9c50381d9bdc1ea6ef'
  32.          '3a338c60ed0710c8b7e3e08929db521a'
  33.          '61025cc947975c3b3a705d086250dcff'
  34.          '249b4ad977235242d2b1b9cc6e1b6254'
  35.          'dbc9aa259cb6bdd19f361ffd1cd5e32a'
  36.          'b3db9d4fd902b62ac9e38589677e2d16'
  37.          '715926469d05eecd345c052e6248ca32'
  38. )
  39. build() {
  40.   cd ${srcdir}/splashutils-${pkgver}
  41.  
  42.   # patch for building splashutils with glibc and dynamical linking
  43.   patch -Np0 -i ${srcdir}/fbsplash.git.patch || return 1
  44.   autoreconf
  45.  
  46.   # fix fbcondecor_ctl splash type
  47.   sed -e 's,fbsplash_lib_init(fbspl_bootup),fbsplash_lib_init(fbspl_undef),' -i src/fbcon_decor_ctl.c
  48.  
  49.   ./configure --prefix=/usr --sysconfdir=/etc --without-klibc --enable-fbcondecor --with-gpm --with-mng --with-png --with-ttf --with-ttf-kernel || return 1
  50.   make || return 1
  51.   make DESTDIR=${startdir}/pkg install || return 1
  52.  
  53.   cd ${pkgdir}
  54.  
  55.   # fix duplicate slashes to get splash_cache_cleanup grep to work
  56.   sed -r -e 's,^(export spl_.*="/)/+,\1,' -i sbin/splash-functions.sh
  57.  
  58.   # fix the path to splash_util
  59.   sed -r -e 's,^(export spl_util=)\"/bin/,\1"/sbin/,' -i sbin/splash-functions.sh
  60.  
  61.   # provide the mountpoints needed by splash-functions.sh
  62.   mkdir -p lib/splash/{cache,tmp}
  63.  
  64.   # Install the config file
  65.   #install -D -m644 ${srcdir}/splash.conf etc/splash/splash || return 1
  66.   install -D -m644 ${srcdir}/splash.conf etc/conf.d/splash || return 1
  67.  
  68.   # Install initcpio hook
  69.   install -D -m644 ${srcdir}/fbsplash.initcpio_install lib/initcpio/install/fbsplash &&
  70.   install -D -m644 ${srcdir}/fbsplash.initcpio_hook    lib/initcpio/hooks/fbsplash   || return 1
  71.  
  72.   # Install the fbcondecor daemon script and config file
  73.   install -D -m644 ${srcdir}/fbcondecor.conf   etc/conf.d/fbcondecor &&
  74.   install -D -m755 ${srcdir}/fbcondecor.daemon etc/rc.d/fbcondecor   || return 1
  75. }