aboutsummaryrefslogtreecommitdiffstats
path: root/testing/thin-provisioning-tools/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/thin-provisioning-tools/APKBUILD')
-rw-r--r--testing/thin-provisioning-tools/APKBUILD58
1 files changed, 58 insertions, 0 deletions
diff --git a/testing/thin-provisioning-tools/APKBUILD b/testing/thin-provisioning-tools/APKBUILD
new file mode 100644
index 0000000000..6bbe1503f7
--- /dev/null
+++ b/testing/thin-provisioning-tools/APKBUILD
@@ -0,0 +1,58 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=thin-provisioning-tools
+pkgver=0.3.1
+pkgrel=0
+pkgdesc="A suite of tools for manipulating the metadata of the dm-thin device-mapper target"
+url="https://github.com/jthornber/thin-provisioning-tools"
+arch="all"
+license="GPL3"
+depends=""
+depends_dev="expat-dev boost-dev"
+makedepends="$depends_dev autoconf automake libtool"
+install=""
+subpackages="$pkgname-doc"
+source="thin-provisioning-tools-$pkgver.tar.gz::https://github.com/jthornber/thin-provisioning-tools/archive/v${pkgver}.tar.gz
+ qualify-btiset.patch"
+
+_builddir="$srcdir"/thin-provisioning-tools-$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"
+ autoreconf || return 1
+ export CXXFLAGS="$CXXFLAGS -fpermissive"
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --with-optimisation='' \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" \
+ BINDIR="${pkgdir}"/sbin \
+ MANDIR=/usr/share/man \
+ install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+md5sums="2e4c7f9fea79a84e0cb99e5f042dd74a thin-provisioning-tools-0.3.1.tar.gz
+d8bc62fe2ee45857f80f8349a7fac224 qualify-btiset.patch"
+sha256sums="461c3035262aeb41f26a4f97b04af801154613ad009bf4d89820b5971e912eca thin-provisioning-tools-0.3.1.tar.gz
+5bbdc02183ec7602853264feac6eb1727812bcb48a6dfedb82f0bfbec91f6fd7 qualify-btiset.patch"
+sha512sums="aeff2a9b118df2c721a32a5addf7289a312ff42b44d298073b506273ea6a5e9cd3efd7584b25d0fca511fa4c865665ba7f9e852392bbae0daa0ce30b77ec9d00 thin-provisioning-tools-0.3.1.tar.gz
+aae266aed288e8aada374a35f11d12460f522fe82f7877cfdbc0a825c4fd97f2c8e6c346166d50446abb98865f8743df7bc5b0ffa543daf873dbde72ca0691b2 qualify-btiset.patch"