aboutsummaryrefslogtreecommitdiffstats
path: root/main/consolekit/APKBUILD
blob: dfda9d30ac0e18a243240b4d190285d4c18ec3b7 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=consolekit
pkgver=0.4.4
pkgrel=2
pkgdesc="Framework for defining and tracking users, login sessions, and seats"
url="http://www.freedesktop.org/wiki/Software/ConsoleKit"
arch="all"
license="GPL-2"
depends=
makedepends="polkit-dev zlib-dev libx11-dev dbus-glib-dev"
depends_dev="dbus-dev"
install=
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.freedesktop.org/software/ConsoleKit/dist/ConsoleKit-$pkgver.tar.bz2
	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 --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
	install -m 755 "$srcdir"/pam-foreground-compat.ck \
		"$pkgdir"/usr/lib/ConsoleKit/run-session.d/
}

md5sums="b57eb18eae8c4d3631d5f4f030218a29  ConsoleKit-0.4.4.tar.bz2
acc4f44190cd677f95fd529d528c9cef  0001-busybox-reboot-and-poweroff-support.patch
d75ed3438dab01552304c06fd9a967b1  pam-foreground-compat.ck"