summaryrefslogblamecommitdiff
path: root/user/udisks2/APKBUILD
blob: 2374ff4ea72c40920e2231d35b00c30e3027bd7c (plain) (tree)
1
2
3
4
5


                                                    
            
        














                                                                                                          








                                                 

                                                               



            



                  











                                                             
                                                                                                                                                                  
                                                                                                                                                  
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=udisks2
pkgver=2.8.2
pkgrel=0
pkgdesc="A Disk Manager"
url="https://www.freedesktop.org/wiki/Software/udisks"
arch="all"
license="GPL-2.0+"
depends=""
depends_dev="acl-dev gobject-introspection-dev libatasmart-dev libblockdev-dev
	libgudev-dev polkit-dev"
makedepends="$depends_dev glib-dev gtk-doc intltool linux-headers"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-libs"
source="https://github.com/storaged-project/udisks/releases/download/udisks-$pkgver/udisks-$pkgver.tar.bz2
	O_CLOEXEC.patch
	"
builddir="$srcdir"/udisks-$pkgver

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--enable-compile-warnings=minimum
	cp "$builddir"/data/org.freedesktop.UDisks2.policy.in \
		"$builddir"/data/org.freedesktop.UDisks2.policy
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

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

sha512sums="dc0087ed2d3ab71dc66f63f868a6e2cd0e4e7578c40b2240739cecaffd6f50f5a2cecfc7ef7df9304e291d84ab12f59a940b9fb42b34a5a60d12061e6aaffc1a  udisks-2.8.2.tar.bz2
269ba55cc755e2a484670258bc530790691b66c9fce9479a2a17d78cff5d52dd1be89290979efd44a0ba82be665f52a356a57f2cbb67951d91fe09d4e24c2a6a  O_CLOEXEC.patch"