aboutsummaryrefslogtreecommitdiffstats
path: root/testing/packagekit/APKBUILD
blob: 22ac2c66a91020a11c8fe1f6dd79f3a300d12639 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=packagekit
pkgver=0.7.0
pkgrel=0
pkgdesc="Package management service"
url="http://www.packagekit.org"
arch="all"
license="GPLv2+ and LGPLv2+"
depends=""
depends_dev=""
makedepends="dbus-glib-dev polkit-dev bash intltool sqlite-dev gtk+-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="http://www.packagekit.org/releases/PackageKit-$pkgver.tar.xz"

_builddir="$srcdir"/PackageKit-$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 --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-qt \
		--enable-gtk-module \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la \
		"$pkgdir"/usr/lib/packagekit-backend/*.la \
		"$pkgdir"//usr/lib/packagekit-plugins/*.la
}

md5sums="8f1bf39b54d24bbe6d836ba83389e9f0  PackageKit-0.7.0.tar.xz"