APKBUILD 1.54 KB
Newer Older
1
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
3
pkgname=accountsservice
4
pkgver=0.6.37
5 6 7 8
pkgrel=0
pkgdesc="D-Bus interface for user account query and manipulation"
url="http://www.freedesktop.org/software/accountsservice/"
arch="all"
9
license="GPLv3+"
10 11
depends=""
depends_dev="glib-dev gobject-introspection-dev polkit-dev"
12
makedepends="$depends_dev intltool gnome-doc-utils"
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
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="http://www.freedesktop.org/software/accountsservice/accountsservice-$pkgver.tar.xz"

_builddir="$srcdir"/accountsservice-$pkgver
prepare() {
	local i
	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 \
		--disable-systemd \
		--enable-introspection=yes \
		|| return 1
41 42 43
	# hack to disable utmpx
	sed -i -e '/#define HAVE_UTMPX_H 1/d' config.h

44 45 46 47 48 49 50 51
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

52 53 54
md5sums="aa5f4da715b8ec19024e39def88831a0  accountsservice-0.6.37.tar.xz"
sha256sums="b0b21136dc9d74a7135fd5ed7fa1a8069efb91bc6ecc1ef8911125433345a5c1  accountsservice-0.6.37.tar.xz"
sha512sums="c6014da6796ed384c02f9171bb47cdbc5da61d80d53adbc3120c19a1166caa2ede2a6e676cfc6ddf2b953e78a290b70d86a5bf1af10c428e215a875878cc816c  accountsservice-0.6.37.tar.xz"