aboutsummaryrefslogtreecommitdiffstats
path: root/main/udisks2/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/udisks2/APKBUILD')
-rw-r--r--main/udisks2/APKBUILD52
1 files changed, 52 insertions, 0 deletions
diff --git a/main/udisks2/APKBUILD b/main/udisks2/APKBUILD
new file mode 100644
index 0000000000..9975641ea0
--- /dev/null
+++ b/main/udisks2/APKBUILD
@@ -0,0 +1,52 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=udisks2
+pkgver=1.97.0
+pkgrel=0
+pkgdesc="Disk Manager"
+url="http://www.freedesktop.org/wiki/Software/udisks"
+arch="all"
+license="GPLv2+"
+depends=""
+depends_dev="glib-dev gobject-introspection-dev polkit-dev libatasmart-dev
+ udev-dev acl-dev"
+makedepends="$depends_dev intltool gtk-doc"
+install=""
+subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
+source="http://udisks.freedesktop.org/releases/udisks-$pkgver.tar.bz2
+ O_CLOEXEC.patch
+ sys-wait.patch
+ udisks2-root-bound-mount-fix.patch"
+
+_builddir="$srcdir"/udisks-$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 \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+md5sums="8ae4ef908ab706789e0e2b33d8810877 udisks-1.97.0.tar.bz2
+fd70ee4163c5bfd9bd474c28a2548c46 O_CLOEXEC.patch
+4c7aa82c180c809f565c55325ce9eb20 sys-wait.patch
+11d6256cd2c2aab25e824bf613061925 udisks2-root-bound-mount-fix.patch"