aboutsummaryrefslogtreecommitdiffstats
path: root/testing/thin-provisioning-tools/APKBUILD
blob: cf1974c025e180079a3e6642c65ec750a4ad6dc0 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=thin-provisioning-tools
pkgver=0.6.2_rc8
pkgrel=1
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="expat boost libaio"
makedepends="expat-dev boost-dev libaio-dev linux-headers autoconf automake libtool"
install=""
subpackages="$pkgname-doc"
_realpkgver=${pkgver/_/-}
source="thin-provisioning-tools-${_realpkgver}.tar.gz::https://github.com/jthornber/thin-provisioning-tools/archive/v${_realpkgver}.tar.gz"

builddir="$srcdir"/thin-provisioning-tools-$_realpkgver
prepare() {
	default_prepare || return 1
	update_config_guess || return 1
}

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="69891c5a9edf1ccfac36f97ff38f9bd6  thin-provisioning-tools-0.6.2-rc8.tar.gz"
sha256sums="b6ce649e1aa6bcc819d421729a41a3d37a67c4eb88b53640793870c6f7e66f0e  thin-provisioning-tools-0.6.2-rc8.tar.gz"
sha512sums="9c956735895de865fdd102245cb8cdee72fc16ebef47105304e581e3d974d044156447d539e8a1093d10bbb5e2396a69910cc5f7d7f76d669144fecffe5c43c3  thin-provisioning-tools-0.6.2-rc8.tar.gz"