aboutsummaryrefslogtreecommitdiffstats
path: root/main/consolekit/APKBUILD
blob: 105587451f65816b26302713bb151c52fd788422 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=consolekit
pkgver=0.4.6
pkgrel=0
pkgdesc="Framework for defining and tracking users, login sessions, and seats"
url="http://www.freedesktop.org/wiki/Software/ConsoleKit"
arch="all"
license="GPL2+"
depends=""
makedepends="polkit-dev zlib-dev libx11-dev dbus-glib-dev"
depends_dev="dbus-dev"
install=""
subpackages="$pkgname-dev"
source="http://www.freedesktop.org/software/ConsoleKit/dist/ConsoleKit-$pkgver.tar.xz
	0001-busybox-reboot-and-poweroff-support.patch
	pam-foreground-compat.ck
	"

_builddir="$srcdir"/ConsoleKit-$pkgver
prepare() {
	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"
	./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 "$pkgdir"/usr/lib/*.la || return 1
	install -m 755 "$srcdir"/pam-foreground-compat.ck \
		"$pkgdir"/usr/lib/ConsoleKit/run-session.d/
}

md5sums="611792b4d616253a5bdec9175f8b7678  ConsoleKit-0.4.6.tar.xz
acc4f44190cd677f95fd529d528c9cef  0001-busybox-reboot-and-poweroff-support.patch
d75ed3438dab01552304c06fd9a967b1  pam-foreground-compat.ck"
sha256sums="b41d17e06f80059589fbeefe96ad07bcc564c49e65516da1caf975146475565c  ConsoleKit-0.4.6.tar.xz
acbc1e1fa9530404b89f4eb57ebea8a55fb574724af5c635593b16d50ae55e56  0001-busybox-reboot-and-poweroff-support.patch
8e197a732d676e12e8fa918c0587522d432b7756987273de2e940a625a38ee8a  pam-foreground-compat.ck"
sha512sums="54955e3e83778a9216846104da8762fd50a37190e209127dd5d211e2227da617e14f6f5c1359905396d299656e526d14e1187b28eaff7d0ae1d7563dc8d9b46d  ConsoleKit-0.4.6.tar.xz
d6ee14662ffc64407cddef95d0c4d22189b8879fc03e6583ffa5201fe65f73fa928cb33d3f9dfd7ba942113fdd39cb816f1c7b4c6500ea5f0cfcc2e35b2e248f  0001-busybox-reboot-and-poweroff-support.patch
46e98e356e4e4f2f792147dce940fc2310b71bede28e58bc2d2ee74f4fcca20fa74dc4fef17ed6cb8c2e4c8d0f38710594fd394302b3fd469bbdf7d44ab4caae  pam-foreground-compat.ck"