updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / uswsusp-splashy-git / PKGBUILD
blob6866948a36a59b9561a4691623c5eb0cbf7e9b69
1 # Contributor: Wag <wag at wag-net dot ch>
2 # Contributor: Kurt J. Bosch <kjb-temp-2009 at alpenjodel dot de>
4 pkgname="uswsusp-splashy-git"
5 pkgver=20100328
6 pkgrel=1
7 pkgdesc="Allows suspending with new userspace suspend and Splashy."
8 arch=('i686' 'x86_64')
9 url="http://suspend.sourceforge.net"
10 license=('GPL')
11 depends=('lzo2' 'libx86' 'libgcrypt' 'splashy')
12 makedepends=('libgcrypt' 'gcc' 'make' 'git')
13 conflicts=('suspend' 'uswsusp')
14 provides=('uswsusp')
15 options=('docs' 'zipman')
16 backup=('etc/suspend.conf')
17 install=uswsusp.install
18 source=(uresume-hook
19         uresume-install
20         s2ram-chvt63.patch)
21 md5sums=('a2dfd5ad0d1875a572fdfc134dcd049f'
22          'e6939703649eba3536f836f99f49b7fd'
23          '373aa7f45152c843025a3b09b7ddc6f9')
25 _gitroot=git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-utils.git
26 _gitname=v0.9
28 build() {
29         cd ${srcdir}
31         # Get GIT repository
32         msg "Connecting to GIT server..."
33         if [[ -d ${_gitname} ]]; then
34           (cd ${_gitname} && git pull origin)
35         else
36           git clone ${_gitroot} ${_gitname}
37         fi
39         msg "GIT checkout done or server timeout"
40         msg "Starting make..."
42         rm -rf ${_gitname}-build
43         cp -r ${_gitname} ${_gitname}-build
44         cd ${_gitname}-build
46         # Checkout correct version
47         git checkout ${_gitname}
50         # Switch to a black screen instead of console on s2ram
51         patch -Np1 -i ../s2ram-chvt63.patch || return 1
53         ./autogen.sh
54         ./configure --enable-compress --enable-encrypt \
55                 --disable-resume-static --disable-static \
56                 --enable-splashy \
57                 --prefix=/usr --sysconfdir=/etc
58         make DESTDIR=${pkgdir} install || return 1
60         install -D -m 644 ../uresume-hook ${startdir}/pkg/lib/initcpio/hooks/uresume && \
61         install -D -m 644 ../uresume-install ${startdir}/pkg/lib/initcpio/install/uresume