aboutsummaryrefslogtreecommitdiffstats
path: root/testing/nbd/APKBUILD
blob: a4a9fecd4b7604dfadf432e1ae4e66bf76390963 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=nbd
pkgver=3.10
pkgrel=0
pkgdesc="tools for network block devices, allowing you to use remote block devices over TCP/IP"
url="http://nbd.sourceforge.net"
arch="all"
license="GPL"
depends=""
depends_dev="glib-dev"
makedepends="$depends_dev linux-headers"
install=""
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/nbd/nbd-$pkgver.tar.xz"

_builddir="$srcdir"/nbd-$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 \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--enable-lfs \
		--enable-syslog \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="c39aea16c30850812c0137714668b0f3  nbd-3.10.tar.xz"
sha256sums="6fc53a7a67ab6c786586ee155b76b502d3ff14f4233e9077957968b3bf3847ce  nbd-3.10.tar.xz"
sha512sums="39b0190e136783ba765079340858c82992392e5711ec046238eb47f9de07163f7d4289b6b1abd35d9d35e61c7ea53fefa3c9dfc7de0deba699663b392277cd4e  nbd-3.10.tar.xz"