summaryrefslogtreecommitdiffstats
path: root/main/sessreg/APKBUILD
blob: 7fb1153b9a6cf6b31b98b23a8ca58613d46a0d70 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sessreg
pkgver=1.1.0
pkgrel=0
pkgdesc="manage utmp/wtmp entries for non-init clients"
url="http://xorg.freedesktop.org/"
arch="all"
license="custom"
subpackages="$pkgname-doc"
depends=
makedepends="xproto"
source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar.bz2
missing_path_wtmpx.patch
"

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

build () {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}
md5sums="e238c89dabc566e1835e1ecb61b605b9  sessreg-1.1.0.tar.bz2
d07d76587afb64739c876529c4f582cd  missing_path_wtmpx.patch"
sha256sums="551177657835e0902b5eee7b19713035beaa1581bbd3c6506baa553e751e017c  sessreg-1.1.0.tar.bz2
8d13a6ae41492cdc4afd38691f45792e8000b129f34e94cf83a30435c4686b29  missing_path_wtmpx.patch"
sha512sums="5d9010874696bbc53a6271f30c089690cb341ede992f6be0914474a03ff4468e01e6a4ce7e6a437b96751fdf0ccced52b374126e5caeac6747edecd049841116  sessreg-1.1.0.tar.bz2
ab562bba2463d8f7ede6ed90fafdd685a33596ef47f118eefa2312f38e34d1ba18bd0c383dfe778327b126e0c80dc12045cb27d49eab09162ebacea6ab98b522  missing_path_wtmpx.patch"