diff options
Diffstat (limited to 'unmaintained/nbd/APKBUILD')
-rw-r--r-- | unmaintained/nbd/APKBUILD | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/unmaintained/nbd/APKBUILD b/unmaintained/nbd/APKBUILD new file mode 100644 index 0000000000..5141b70c80 --- /dev/null +++ b/unmaintained/nbd/APKBUILD @@ -0,0 +1,51 @@ +# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net> +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: +pkgname=nbd +pkgver=3.13 +pkgrel=0 +pkgdesc="Tools for network block devices" +url="http://nbd.sourceforge.net" +arch="all" +license="GPL2" +depends="" +depends_dev="" +makedepends="glib-dev linux-headers" +install="" +subpackages="$pkgname-doc" +source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.xz" + +_builddir="$srcdir"/$pkgname-$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 \ + --localstatedir=/var \ + --enable-lfs \ + --enable-syslog \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 +} + +md5sums="784be37497cc2f9a53c67c8c77d1676d nbd-3.13.tar.xz" +sha256sums="8597cd97a41930dfcbcc6ce7cf910f6b609771718a4f1680713c2f2ba5cc200d nbd-3.13.tar.xz" +sha512sums="da1f6c1aab10baf7ef10062481f3a26dfa142f5cfc21fb7abc90f6eb9906df619331dbb36b693c52d4a7a5fe0923f6179b59eea74033cb1278dca99b192cdbff nbd-3.13.tar.xz" |