updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / fbsplash / PKGBUILD
blob22811f930aaa7d8fbfecda994de2bf96f7734459
1 # Maintainer: Heiko Baums <heiko@baums-on-web.de>
2 # Contributor: Kurt J. Bosch <kjb-temp-2009 at alpenjodel.de>
4 pkgname=fbsplash
5 pkgver=1.5.4.4
6 pkgrel=7
7 pkgdesc="A userspace implementation of a splash screen for Linux (formerly known as gensplash)"
8 arch=('i686' 'x86_64')
9 url="http://fbsplash.alanhaggai.org"
10 license=('GPL')
11 depends=('miscsplashutils' 'freetype2' 'libjpeg' 'libpng' 'libmng' 'lcms' 'gpm') 
12 optdepends=('linux-fbcondecor: enable console background images'
13             'fbsplash-extras: additional functionality like daemon icons'
14             'uswsusp-fbsplash: suspend to disk with fbsplash'
15             'python: convert themes from splashy to fbsplash')
16 conflicts=('fbsplash-scripts' 'initscripts-extras-fbsplash')
17 options=('!makeflags')
18 backup=('etc/conf.d/fbcondecor' 'etc/conf.d/splash')
19 install=fbsplash.install
20 source=(http://fbsplash.alanhaggai.org/tarballs/files/splashutils-${pkgver}.tar.bz2
21         splash_start_initcpio.patch
22         splash.conf
23         fbsplash-basic.sh
24         fbsplash.initcpio_install
25         fbsplash.initcpio_hook
26         fbcondecor.daemon
27         fbcondecor.conf)
28 md5sums=('2a16704c4adde97b58812cd89e3f2342'
29          '4045e315c52f5a576fca4f7e634eeb91'
30          '90708a96038d7d7921c2e9fde938c058'
31          'a6b0b9c5c7a460380a7db127e0278164'
32          '24e2a7bbc2d18fe3ec10093665cd7a6e'
33          '4a3ac992a5042fa9770cbd3fdb7e1465'
34          '715926469d05eecd345c052e6248ca32'
35          'b3db9d4fd902b62ac9e38589677e2d16')
37 build() {
38   cd ${srcdir}/splashutils-${pkgver}
40   autoreconf
42   # fix fbcondecor_ctl splash type
43   sed -e 's,fbsplash_lib_init(fbspl_bootup),fbsplash_lib_init(fbspl_undef),' -i src/fbcon_decor_ctl.c
45   # fix set_event_dev call for initcpio usage (if evdev module is there)
46   #patch -Np2 -i ${srcdir}/splash_start_initcpio.patch
48   export LIBS="-lbz2"
49   ./configure --prefix=/usr --sysconfdir=/etc --without-klibc --enable-fbcondecor --with-gpm --with-mng --with-png --with-ttf --with-ttf-kernel
50   make
53 package() {
54   cd ${srcdir}/splashutils-${pkgver}
56   make DESTDIR=${pkgdir} install
58   cd ${pkgdir}
60   # fix duplicate slashes to get splash_cache_cleanup grep to work
61   sed -r -e 's,^(export spl_.*="/)/+,\1,' -i sbin/splash-functions.sh
63   # fix the path to splash_util
64   sed -r -e 's,^(export spl_util=)\"/bin/,\1"/sbin/,' -i sbin/splash-functions.sh
66   # provide the mountpoint needed by splash-functions.sh
67   mkdir -p lib/splash/{cache,tmp}
69   # Install fbsplash scripts and config file
70   install -D -m644 ${srcdir}/splash.conf etc/conf.d/splash
71   install -D -m644 ${srcdir}/fbsplash-basic.sh etc/rc.d/functions.d/fbsplash-basic.sh
72   install -D -m644 ${srcdir}/fbsplash.initcpio_install lib/initcpio/install/fbsplash
73   install -D -m644 ${srcdir}/fbsplash.initcpio_hook lib/initcpio/hooks/fbsplash
75   # Install fbcodecor script and config file
76   install -D -m644 ${srcdir}/fbcondecor.conf etc/conf.d/fbcondecor
77   install -D -m755 ${srcdir}/fbcondecor.daemon etc/rc.d/fbcondecor