summaryrefslogtreecommitdiffstats
path: root/main/udisks/APKBUILD
blob: ca55fbdbb23df6284e5891b6e2326646b97b0fd9 (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
# Contributor: Carlo Landmeter 
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=udisks
pkgver=1.0.4
pkgrel=0
pkgdesc="Disk Management Service"
url="http://www.freedesktop.org/wiki/Software/udisks"
arch="all"
license="GPL"
depends=""
makedepends="glib-dev polkit-dev parted-dev udev-dev sg3_utils-dev
	dbus-dev dbus-glib-dev lvm2-dev pkgconfig libatasmart-dev
	intltool eggdbus-dev expat-dev docbook-xsl libxslt"
install=
subpackages="$pkgname-dev $pkgname-doc"
source="http://hal.freedesktop.org/releases/$pkgname-$pkgver.tar.gz
	"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) 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 \
		--libexecdir=/usr/lib/udisks \
		--localstatedir=/var \
		--disable-static \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir" -name '*.la' -delete
	mv "$pkgdir"/usr/share/pkgconfig "$pkgdir"/usr/lib/
}

md5sums="86c63b2b5484f2060499a052b5b6256b  udisks-1.0.4.tar.gz"