updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / splashy-full / PKGBUILD
blob64e78b47cc565c360cd8cabe4fcba3821d24755f
1 # Contributor: Det <nimetonmaili@gmail.com>
2 # Contributor: Lexiw <llexiw@gmail.com>
3 # Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
4 # Contributor: dongiovanni <dongiovanni@archlinux.de>
5 # Contributor: Darwin Bautista <djclue917@gmail.com>
6 # Contributor: Jeremy Sands <cto@jeremysands.com>
7 # Contributor: Tons of people here http://bbs.archlinux.org/viewtopic.php?id=48978
9 pkgname=splashy-full
10 pkgver=20110906
11 pkgrel=1
12 pkgdesc="A boot splashing system"
13 arch=('i686' 'x86_64')
14 url="http://splashy.alioth.debian.org/"
15 license=('GPL')
16 depends=('glib2' 'directfb')
17 makedepends=('automake1.10' 'git')
18 options=('!libtool' '!distcc' '!makeflags')
19 provides=('splashy')
20 install=${pkgname}.install
21 backup=('etc/splash.conf'
22         'etc/splashy/config.xml')
23 source=(splash.conf
24         splash-initscripts
25         splashy-functions
26         splashy.initcpio_hook
27         splashy.initcpio_install)
28 sha1sums=('7b1f6661665932379032e6d0da430e71ecfc8a45'  # splash.conf
29           '524d2df3f5d22da814000e68acb37ec8a8475dd3'  # splash-initscripts
30           'f6135b85eb336865c3f52d004ee5f4b50409aa0f'  # splashy-functions
31           '300620ed933ac14ce7beb9bfb233ba3d3b2f7627'  # splashy.initcpio_hook
32           '002b1b95e760fc93388fdf9fb006b65842ee654a')  # splashy.initcpio_install
34 _gitroot='git://anonscm.debian.org/git/splashy/splashy.git'
35 _gitname='splashy'
37 build() {
38   msg "Connecting to git.freedesktop.org GIT server...."
40   if [ -d ${_gitname} ]; then
41     cd ${_gitname} && git pull origin
42     msg "The local files are updated."
43   else
44     git clone ${_gitroot} ${_gitname}
45   fi
46   msg "GIT checkout done. Preparing sources..."
48   cd "${srcdir}"
49   rm -rf ${_gitname}-build
50   cp -r ${_gitname} ${_gitname}-build
52   cd ${_gitname}-build
54   # Fix the build
55   sed -e 's|-Werror||g' -i configure.ac
57   ./autogen.sh --prefix=/usr --libdir=/usr/lib --sysconfdir=/etc --sbindir=/sbin --datarootdir=/usr/share --mandir=/usr/share/man --includedir=/usr/include
59   make
62 package() {
63   cd ${_gitname}-build
65   make DESTDIR="${pkgdir}" install
67   rm -rf "${pkgdir}/"{etc/{console-tools,default,init.d,lsb-base-logging.sh},usr/share/initramfs-tools}
69   install -Dm644 ../splashy.initcpio_install "${pkgdir}/lib/initcpio/install/splashy"
70   install -Dm644 ../splashy.initcpio_hook "${pkgdir}/lib/initcpio/hooks/splashy"
71   install -Dm644 ../splashy-functions "${pkgdir}/etc/rc.d/splashy-functions"
72   install -Dm644 ../splash-initscripts "${pkgdir}/etc/rc.d/functions.d/splash"
73   install -Dm644 ../splash.conf "${pkgdir}/etc/splash.conf"
75   sed -e 's|>/etc/splashy/themes<|>/usr/share/splashy/themes<|' -i "${pkgdir}/etc/splashy/config.xml"