updated on Sat Jan 21 08:01:15 UTC 2012
[aur-mirror.git] / uswsusp-fbsplash / PKGBUILD
blob0ea3c4672229a755dc25a55eb7f15fec027939bd
1 #!/bin/bash
3 # Maintainer: Kurt J. Bosch <kjb-temp-2009 at alpenjodel.de>
4 # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
5 # Contributor: Kaos < gianlucaatlas at gmail dot com >
7 _pkgname=uswsusp
8 pkgname=${_pkgname}-fbsplash
9 pkgver=1.0
10 pkgrel=5
11 pkgdesc="Userspace software suspend aka suspend-utils - with Fbsplash support"
12 arch=('i686' 'x86_64')
13 url="http://suspend.sourceforge.net"
14 license=('GPL')
15 depends=('libgcrypt' 'libx86' 'lzo2'
16 'pciutils>=2.2.4' 'zlib'
17 'fbsplash'
18 'mkinitcpio>=0.7' # busybox pidof, build()
20 optdepends=(
21 'fbsplash-themes-arch-banner: Show icons for daemons and pseudo-services'
22 'fbsplash-extras: Show icons for daemons and pseudo-services'
23 'pm-utils: Show icons for daemons and pseudo-services'
25 provides=("${_pkgname}=${pkgver}")
26 conflicts=("${_pkgname}")
27 backup=('etc/suspend.conf')
28 install=INSTALL
29 changelog=CHANGELOG
30 source=(
31 "http://downloads.sourceforge.net/project/suspend/suspend/suspend-${pkgver}/suspend-utils-${pkgver}.tar.bz2"
32 'suspend-0.9_pre0-errno.patch'
33 'uresume-hook'
34 'uresume-install'
35 'suspend.conf.patch'
36 's2ram-chvt63.patch'
37 's2disk-no-chvt1.patch'
38 's2disk-splash-prepare-fail-msg-only.patch'
39 's2disk-keep-vt16.patch'
40 'fbsplash-no-pre-snapshoot-progress.patch'
41 'fbsplash-no-fade-effects.patch'
42 'resume-disable-print-libgcrypt-version.patch'
45 build() {
46 cd "${srcdir}"/suspend-utils-${pkgver}
48 # Fix build error - patch from http://bugs.gentoo.org/339759
49 patch -Np0 -i ../suspend-0.9_pre0-errno.patch
51 # Make the config file a bit more nice
52 patch -Np2 -i ../suspend.conf.patch
54 # Show a black screen instead of ugly console
55 patch -Np2 -i ../s2ram-chvt63.patch
56 patch -Np2 -i ../s2disk-no-chvt1.patch
58 # Don't show message "Looking for splash system..."
59 patch -Np2 -i ../s2disk-splash-prepare-fail-msg-only.patch
61 # If already on default Fbsplash VT, don't change away from it
62 patch -Np2 -i ../s2disk-keep-vt16.patch
64 # Fix initial suspend progress bar shown again after resume (0% = 100% resume in reverse)
65 patch -Np2 -i ../fbsplash-no-pre-snapshoot-progress.patch
67 # Disable fadein/fadeout effects (kernel cmdline isn't parsed)
68 patch -Np2 -i ../fbsplash-no-fade-effects.patch
70 # Don't show message "resume: libgcrypt version: VERSION"
71 patch -Np2 -i ../resume-disable-print-libgcrypt-version.patch
73 ./configure \
74 --prefix=/usr \
75 --enable-compress \
76 --enable-encrypt \
77 --enable-threads \
78 --disable-resume-static \
79 --disable-static \
80 --sysconfdir=/etc \
81 --enable-fbsplash
82 make
85 package() {
86 cd "${srcdir}"/suspend-utils-${pkgver}
88 make DESTDIR="${pkgdir}" install
89 rmdir "${pkgdir}"/dev
91 install -D -m 644 "${srcdir}"/uresume-hook "${pkgdir}"/lib/initcpio/hooks/uresume
92 install -D -m 644 "${srcdir}"/uresume-install "${pkgdir}"/lib/initcpio/install/uresume
95 md5sums=('02f7d4b679bad1bb294a0efe48ce5934'
96 '511f2309fccc4c6ec411104d1bcd371e'
97 'fe43dbb7c80d48425f8afa03ae7cc317'
98 '8812b07fe2f9acfe17d9addc6a3b84e7'
99 '459b51ca2c39f4fba3d567127dc93165'
100 '95111769efe97103f1ab5cfe9a408545'
101 '4927a0bfa0056918ab58c47e8f837ef9'
102 'c367b273e0d9430e44d86e092eff23f6'
103 '8db88e41c1a8a34cf36d59498f19bdcc'
104 '917d079ea7cd9a02d19361e71b0b3ac7'
105 'a479dc5f19d1ee9c8315f3e63217a65a'
106 '87adbe05e7281f3a571cdcae7e0378fc')