summaryrefslogtreecommitdiffstats
path: root/testing/consolekit/APKBUILD
blob: 1e6a035e690410cbfa1c5e6c0757697294f73960 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=consolekit
pkgver=0.4.3
pkgrel=0
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"

_builddir="$srcdir"/ConsoleKit-$pkgver

prepare() {
	cd "$_builddir"
	# apply patches here
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	mkdir -p "$pkgdir"/var/run/ConsoleKit \
		"$pkgdir"/var/log/ConsoleKit
}

md5sums="4c39c6eacc75334b890f21eead1d2945  ConsoleKit-0.4.3.tar.bz2"