aboutsummaryrefslogtreecommitdiffstats
path: root/main/consolekit/APKBUILD
blob: 7f38f2a68cfe1c112181c0299b9f0c2f7ba01e11 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=consolekit
pkgver=0.4.5
pkgrel=1
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
	rm "$pkgdir"/usr/lib/*.la || return 1
	install -m 755 "$srcdir"/pam-foreground-compat.ck \
		"$pkgdir"/usr/lib/ConsoleKit/run-session.d/
}

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