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"
7 pkgdesc="Allows suspending with new userspace suspend and Splashy."
9 url="http://suspend.sourceforge.net"
11 depends=('lzo2' 'libx86' 'libgcrypt' 'splashy')
12 makedepends=('libgcrypt' 'gcc' 'make' 'git')
13 conflicts=('suspend' 'uswsusp')
15 options=('docs' 'zipman')
16 backup=('etc/suspend.conf')
17 install=uswsusp.install
21 md5sums=('a2dfd5ad0d1875a572fdfc134dcd049f'
22 'e6939703649eba3536f836f99f49b7fd'
23 '373aa7f45152c843025a3b09b7ddc6f9')
25 _gitroot=git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-utils.git
32 msg "Connecting to GIT server..."
33 if [[ -d ${_gitname} ]]; then
34 (cd ${_gitname} && git pull origin)
36 git clone ${_gitroot} ${_gitname}
39 msg "GIT checkout done or server timeout"
40 msg "Starting make..."
42 rm -rf ${_gitname}-build
43 cp -r ${_gitname} ${_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
54 ./configure --enable-compress --enable-encrypt \
55 --disable-resume-static --disable-static \
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