aboutsummaryrefslogtreecommitdiffstats
path: root/community/udisks2/APKBUILD
blob: f85ac40b3ca3707924bfed9e76788ad86e4cdf35 (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=udisks2
pkgver=2.8.4
pkgrel=1
pkgdesc="A Disk Manager"
options="!check"
url="https://www.freedesktop.org/wiki/Software/udisks/"
arch="all"
license="GPL-2.0-or-later"
depends="dbus"
depends_dev="gobject-introspection-dev polkit-dev libatasmart-dev
	libgudev-dev acl-dev"
makedepends="$depends_dev glib-dev intltool gtk-doc linux-headers libblockdev-dev
	btrfs-progs-dev coreutils"
subpackages="
	$pkgname-dev
	$pkgname-doc
	$pkgname-lang
	$pkgname-libs
	$pkgname-bash-completion:bashcomp:noarch
	"
source="https://github.com/storaged-project/udisks/releases/download/udisks-$pkgver/udisks-$pkgver.tar.bz2
	O_CLOEXEC.patch
	"
builddir="$srcdir"/udisks-$pkgver

case "$CARCH" in
mips*)	options="!check" ;;
esac

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--enable-compile-warnings=minimum \
		--enable-lvm2 \
		--enable-lvmcache \
		--enable-btrfs \
		--enable-zram \
		--with-udevdir=/lib/udev
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	rm -f "$pkgdir"/usr/lib/*.a
}

libs() {
	pkgdesc="Dynamic library to access the udisks daemon"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/lib*.so.* \
		"$pkgdir"/usr/lib/girepository* \
		"$subpkgdir"/usr/lib/
}

bashcomp() {
	depends=""
	pkgdesc="Bash completions for $pkgname"
	install_if="$pkgname=$pkgver-r$pkgrel bash-completion"

	amove usr/share/bash-completion/completions
}

sha512sums="70860e5ca9ac73d442ca67f0e0429ce2f33575d8f64945fbf06d1694b080c8b6fed8d65b2485eff0ab66eab59cdebeb9309424820a2ee82c5faaa38029e15e6c  udisks-2.8.4.tar.bz2
269ba55cc755e2a484670258bc530790691b66c9fce9479a2a17d78cff5d52dd1be89290979efd44a0ba82be665f52a356a57f2cbb67951d91fe09d4e24c2a6a  O_CLOEXEC.patch"