aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gpm/APKBUILD
blob: 58671e9e9e1487bae506df5f280db09acf61bc51 (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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# Contributor: Jeff Pohlmeyer <yetanothergeek@gmail.com>
# Maintainer: Jeff Pohlmeyer <yetanothergeek@gmail.com>
pkgname=gpm
pkgver=1.20.7
pkgrel=1
pkgdesc="A mouse server for the console"
url="http://www.nico.schottelius.org/software/gpm/"
arch="all"
license="GPL"
depends=""
depends_dev=""
makedepends="$depends_dev texinfo autoconf automake libtool bison linux-headers"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.nico.schottelius.org/software/gpm/archives/gpm-$pkgver.tar.bz2
	error-format.patch
	01-Iheaders.patch
	02-sys-select.patch
	03-gpmroot.patch
	gpm.initd
	gpm.confd
	"

_builddir="$srcdir"/gpm-$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
}

build() {
	cd "$_builddir"
	./autogen.sh
	./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
	rm -f "$pkgdir"/usr/lib/*.la

	install -m755 -D "$srcdir"/$pkgname.initd \
		"$pkgdir"/etc/init.d/$pkgname || return 1
	install -m644 -D "$srcdir"/$pkgname.confd \
		"$pkgdir"/etc/conf.d/$pkgname || return 1

	chmod 755 "$pkgdir"/usr/lib/libgpm.so.*
}

md5sums="bf84143905a6a903dbd4d4b911a2a2b8  gpm-1.20.7.tar.bz2
ba7ffe9a3b6e3f672081a5b7d17f4766  error-format.patch
3adbe10e28d14d5b498a83bbccbba427  01-Iheaders.patch
6b6ef5234d6903c666e0f12eb8a1b958  02-sys-select.patch
3b2fe9f664c36f5cd395376eca43e63f  03-gpmroot.patch
0eeefbbd956ee14cb20161d5a7a5bdc6  gpm.initd
2243adac99a888b0598d6b9233862788  gpm.confd"
sha256sums="f011b7dc7afb824e0a017b89b7300514e772853ece7fc4ee640310889411a48d  gpm-1.20.7.tar.bz2
290e032640c8cfb95d5a8dddfd99e11887100b08750b9f5ceaec6e3209e3ebf3  error-format.patch
4b99946b86d9f21d7ec4f3e366dab18a57133903c480408bf0eb838fccc2f11d  01-Iheaders.patch
04487ddfe3e2f5ada548d55bc0e62bf5f36e92641d254f4f24ee0428253b26a5  02-sys-select.patch
a202d783c586e959ca28bc8bea5c99f0f1c68679f223a2241b04f74d9a31d01c  03-gpmroot.patch
41849c683967590db3217dd231df3fdf83ecdf01c657221ff4cbe45aa63d498f  gpm.initd
daad6a5d900215b27ad86d1352724fea2df39581e1ae6e808f627d6f8bab3b2e  gpm.confd"
sha512sums="51c1141ed502f8b6bc846485a8e315bafe3cf2b7c9d1ea8a710d9748ff2058f29c7ab5715fc1730a8437c613181d2050f37b134e9288c69ba8ff7fb0be7ec0d1  gpm-1.20.7.tar.bz2
caad0472374b9bb9bdf8f31480f88895b2d65dc0565611932fa185592ffcc18065bb66b433f54f0df9f6173056b6c34ec5d57f79bd19f38edefeca57603bc76c  error-format.patch
cb9fa2c48b5fa7f06ccfa8be57e421ee228b49707027094a2fdca5809407e7e277484c820ed4ee0800ef1a36bfc322ac33b2f29b4411ffab345c900931113863  01-Iheaders.patch
24fbc48408388a7481dadbccc6da3edbd5f82a644460e5a9ca6039fbac2d2eff6c16002b2158c1955fbd2677655b8b1acd1e12b94b9c29eeddb1a883e813e2a7  02-sys-select.patch
5a021516a4833a270cbb7537f2096d6deabd40d874a9f4f9ba4d5728a89e1626ea9cbc4fefee354950f145d4c8735504a128da0fac7fa74a9c32c0d5a93125e9  03-gpmroot.patch
81b0854b6d8b3fcf5a26690b9cb17878af412e773726cdd7c3e90504e85fd5aff0614c171757256c832e20521a734d353f4c38684ab5f749f20dbc497cc680e5  gpm.initd
25a7ebc60df8e9dda197ae7cf18fdb036793e15aeb06757a872ad25b8ad28cd0686e7ef89a47ee677ae6bfee980abd3777e89be84b2a2611141dc688c20c3ed6  gpm.confd"