updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / plymouth-git / PKGBUILD
blobba6e16a9e73fe1443dd08c1a9dae60701e54fdcd
1 # Maintainer: Det <nimetonmaili at gmail dot com>
2 # Contributor: Christian Autermann <christian@autermann.org>
3 # Contributor: Martin Lee <hellnest.fuah@gmail.com>
4 # Contributor: Ricardo Funke
5 # Contributor: PirateJonno <j@skurvy.no-ip.org>
6 # Contributor: lh <jarryson#gmail.com>
7 # Contributor: Cilyan Olowen <gaknar@gmail.com>
9 pkgname=plymouth-git
10 pkgver=20110731
11 pkgrel=1
12 pkgdesc="A graphical boot splash screen with kernel mode-setting support (Git version)"
13 arch=('i686' 'x86_64')
14 url="http://freedesktop.org/wiki/Software/Plymouth"
15 license=('GPL')
16 depends=('initscripts' 'libdrm' 'gtk2')
17 makedepends=('git')
18 options=('!libtool' '!emptydirs')
19 install=${pkgname}.install
20 backup=('etc/plymouth/plymouthd.conf')
21 provides=('plymouth')
22 conflicts=('plymouth')
23 source=('arch-logo.png'
24         "http://projects.archlinux.org/svntogit/packages.git/plain/cryptsetup/repos/core-${CARCH}/encrypt_hook"
25         "http://projects.archlinux.org/svntogit/packages.git/plain/cryptsetup/repos/core-${CARCH}/encrypt_install"
26         'encrypt_hook.patch'
27         'encrypt_install.patch'
28         'plymouthd.conf'
29         'plymouth.functions'
30         'plymouth.initcpio_hook'
31         'plymouth.initcpio_install'
32         'plymouth-update-initrd.patch'
33         'system-release')
34 sha1sums=('3bc168dd06ff3e2790f26c131209a7fb4a5ccbd7'  # arch-logo.png
35           '2d3dfa82eabe51f1addf7472f65a7588324e1c0a'  # encrypt_hook
36           '2ddf6061162b481f343ce883083b6ab3b64342e0'  # encrypt_install
37           '70e210bceb266b974fc6f313f0a460d21c29af7b'  # encrypt_hook.patch
38           '08dc7cdc5873634042052014b5250d552158dc4e'  # encrypt_install.patch
39           '01235a179d8f991a37035c15cdcc0733b581afd4'  # plymouthd.conf
40           '60a55ff2cf417bafa07cf82abcf7680e5c046e52'  # plymouth.functions
41           '39a27b5a049dc620b7820b62f351b6cb1d2a48c5'  # plymouth.initcpio_hook
42           'c74e5d25c2eadd28da4b93d86a146cea8bbe3cff'  # plymouth.initcpio_install
43           '019663ae0070163e8d6cf268e7efeaaef474e725'  # plymouth-update-initrd.patch
44           '4c31cbbfbdeb48593641ff600c8d4fb7bda2b01c') # system-release
46 _gitroot='git://git.freedesktop.org/git/plymouth'
47 _gitname='plymouth'
49 build() {
50   msg "Connecting to git.freedesktop.org GIT server...."
52   if [ -d ${_gitname} ] ; then
53     cd ${_gitname} && git pull origin
54     msg "The local files are updated."
55   else
56     git clone ${_gitroot} ${_gitname}
57   fi
58   msg "GIT checkout done. Preparing sources..."
60   cd "${srcdir}"
61   rm -rf ${_gitname}-build
62   cp -r ${_gitname} ${_gitname}-build
64   msg "Applying Patches..."
66   patch -p0 -i encrypt_hook.patch
67   patch -p0 -i encrypt_install.patch
69   cd ${_gitname}-build
70   patch -p0 -i "${srcdir}/plymouth-update-initrd.patch"
72   sed -e 's:png_set_gray_1_2_4_to_8:png_set_expand_gray_1_2_4_to_8:g' \
73        -i src/libply-splash-graphics/ply-image.c
75   msg "Starting make..."
77   ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib \
78     --enable-tracing \
79     --with-system-root-install \
80     --enable-gdm-transition \
81     --with-gdm-autostart-file=no \
82     --with-logo=/usr/share/plymouth/arch-logo.png \
83     --with-background-start-color-stop=0x000000 \
84     --with-background-end-color-stop=0x4D4D4D
86   make
89 package() {
90   cd ${_gitname}-build
92   make DESTDIR="${pkgdir}" install
94   install -Dm644 "${srcdir}/plymouth.initcpio_install" "${pkgdir}/lib/initcpio/install/plymouth"
95   install -Dm644 "${srcdir}/plymouth.initcpio_hook" "${pkgdir}/lib/initcpio/hooks/plymouth"
96   install -Dm644 "${srcdir}/encrypt_install" "${pkgdir}/lib/initcpio/install/plymouth-encrypt"
97   install -Dm644 "${srcdir}/encrypt_hook" "${pkgdir}/lib/initcpio/hooks/plymouth-encrypt"
98   install -Dm644 "${srcdir}/plymouth.functions" "${pkgdir}/etc/rc.d/functions.d/plymouth.functions"
99   install -Dm644 "${srcdir}/arch-logo.png" "${pkgdir}/usr/share/plymouth/arch-logo.png"
100   install -Dm644 "${srcdir}/system-release" "${pkgdir}/etc/system-release"
101   install -Dm644 "${srcdir}/plymouthd.conf" "${pkgdir}/etc/plymouth/plymouthd.conf"
104 # vim: set ts=2 sw=2 ft=sh noet: