aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/suspend-utils/APKBUILD
blob: 4342d1238ef55b04a9bdeb00d09ef8ddc0115e2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Contributor: Andrew Hills <ahills@ednos.net>
# Maintainer: Andrew Hills <ahills@ednos.net>
pkgname=suspend-utils
pkgver=1.0
pkgrel=0
pkgdesc="Userspace Software Suspend (µswsusp)"
url="http://suspend.sourceforge.net"
arch="x86 x86_64"
license="GPL2"
depends=""
depends_dev=""
makedepends="$depends_dev pciutils-dev libx86-dev util-linux-dev linux-headers"
install=""
subpackages="$pkgname-doc"
source="http://sourceforge.net/projects/suspend/files/suspend/suspend-$pkgver/suspend-utils-$pkgver.tar.bz2
	define-gnu-source.patch"

_builddir="$srcdir"/suspend-utils-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done

	update_config_sub
}

build() {
	cd "$_builddir"
	export CFLAGS=-std=gnu89
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="02f7d4b679bad1bb294a0efe48ce5934  suspend-utils-1.0.tar.bz2
257194f9de1c5945fb28cbc0b958774c  define-gnu-source.patch"
sha256sums="0206ba6332860b6da57acc79cc0f8604150ef0835ff9633fd42d59d181a6c85d  suspend-utils-1.0.tar.bz2
99f6e77021a20b1df769559a501ebbe4b1afd36e19ad1e53a72d8e11f909dc6b  define-gnu-source.patch"
sha512sums="481f7ab6e6d43b963cf7abf4d16a9911035dbce13d96e11eeadd50bbd2b9671c597eab0e3060536dcb0d6d848e30ac0e7ff534275fc2d66d2064b75066a4adb8  suspend-utils-1.0.tar.bz2
4acaa74c7466734a7da576e2d0c22a60112cb19d02516328b92ba1943fe280fa1b999be203e6c5fcc3d92d48092a72a6e7f3b2fac614c767f20de2e5c93c8da0  define-gnu-source.patch"