aboutsummaryrefslogtreecommitdiffstats
path: root/testing/thin-provisioning-tools/APKBUILD
blob: ce25616b5b9cadbd84c8573997f935fe2f62e18d (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
# 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"
options="!libc_uclibc"
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
}

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"