updated on Sun Jan 8 16:01:26 UTC 2012
[aur-mirror.git] / plymouth / PKGBUILD
blob530e0ed71f388c44f88e65a0a3328f0e180cbe25
1 # Maintainer: Det <nimetonmaili at gmail dot com>
2 # Contributor: PirateJonno <j@skurvy.no-ip.org>
3 # Contributor: Biginoz <biginoz _at_ free _point_ fr>
4 # Based on plymouth-git: http://aur.archlinux.org/packages.php?ID=26117
6 pkgname=plymouth
7 pkgver=0.8.3
8 pkgrel=8
9 pkgdesc="A graphical boot splash screen with kernel mode-setting support"
10 arch=('i686' 'x86_64')
11 url="http://freedesktop.org/wiki/Software/Plymouth"
12 license=('GPL')
13 depends=('initscripts' 'libdrm' 'gtk2')
14 options=('!libtool' '!emptydirs')
15 install=$pkgname.install
16 backup=('etc/plymouth/plymouthd.conf')
17 source=("http://www.freedesktop.org/software/$pkgname/releases/$pkgname-$pkgver.tar.bz2"
18         'arch-logo.png'
19         "http://projects.archlinux.org/svntogit/packages.git/plain/cryptsetup/repos/core-$CARCH/encrypt_hook"
20         "http://projects.archlinux.org/svntogit/packages.git/plain/cryptsetup/repos/core-$CARCH/encrypt_install"
21         'encrypt_hook.patch'
22         'encrypt_install.patch'
23         'plymouthd.conf'
24         'plymouth.functions'
25         'plymouth.initcpio_hook'
26         'plymouth.initcpio_install'
27         'plymouth-update-initrd.patch'
28         'system-release')
29 sha1sums=(`wget $source.sha1sum -qO - | cut -d " " -f1`
30           '3bc168dd06ff3e2790f26c131209a7fb4a5ccbd7'  # arch-logo.png
31           'ecfdeb5c6484043f73afa1a1efd8186409de9b06'  # encrypt_hook
32           '2ddf6061162b481f343ce883083b6ab3b64342e0'  # encrypt_install
33           'bf09aa9e90f1b08f99e655b6975bb957ae4c390b'  # encrypt_hook.patch
34           '08dc7cdc5873634042052014b5250d552158dc4e'  # encrypt_install.patch
35           '01235a179d8f991a37035c15cdcc0733b581afd4'  # plymouthd.conf
36           '60a55ff2cf417bafa07cf82abcf7680e5c046e52'  # plymouth.functions
37           '39a27b5a049dc620b7820b62f351b6cb1d2a48c5'  # plymouth.initcpio_hook
38           'c74e5d25c2eadd28da4b93d86a146cea8bbe3cff'  # plymouth.initcpio_install
39           '019663ae0070163e8d6cf268e7efeaaef474e725'  # plymouth-update-initrd.patch
40           '4c31cbbfbdeb48593641ff600c8d4fb7bda2b01c') # system-release
42 build() {
43   msg "Applying Patches..."
45   patch -p0 -i encrypt_hook.patch
46   patch -p0 -i encrypt_install.patch
48   cd $pkgname-$pkgver
49   patch -p0 -i "$srcdir/plymouth-update-initrd.patch"
51   sed -e 's:png_set_gray_1_2_4_to_8:png_set_expand_gray_1_2_4_to_8:g' \
52        -i src/libply-splash-graphics/ply-image.c
54   msg "Starting make..."
56   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib \
57     --enable-tracing \
58     --with-system-root-install \
59     --enable-gdm-transition \
60     --with-gdm-autostart-file=no \
61     --with-logo=/usr/share/plymouth/arch-logo.png \
62     --with-background-start-color-stop=0x000000 \
63     --with-background-end-color-stop=0x4D4D4D
65   make
68 package() {
69   cd $pkgname-$pkgver
71   make DESTDIR="$pkgdir" install
73   cd "$srcdir"
74   install -Dm644 plymouth.initcpio_install "$pkgdir/lib/initcpio/install/plymouth"
75   cp encrypt_install "$pkgdir/lib/initcpio/install/plymouth-encrypt"
76   install -Dm644 plymouth.initcpio_hook "$pkgdir/lib/initcpio/hooks/plymouth"
77   cp encrypt_hook "$pkgdir/lib/initcpio/hooks/plymouth-encrypt"
78   install -Dm644 plymouth.functions "$pkgdir/etc/rc.d/functions.d/plymouth.functions"
79   install -Dm644 arch-logo.png "$pkgdir/usr/share/plymouth/arch-logo.png"
80   install -Dm644 plymouthd.conf "$pkgdir/etc/plymouth/plymouthd.conf"
81   cp system-release "$pkgdir/etc/"