diff options
-rw-r--r-- | testing/sc101-nbd/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/sc101-nbd/APKBUILD b/testing/sc101-nbd/APKBUILD new file mode 100644 index 0000000000..30a633f5fb --- /dev/null +++ b/testing/sc101-nbd/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Mika Havela <mika.havela@gmail.com> +# Maintainer: Mika Havela <mika.havela@gmail.com> +pkgname=sc101-nbd +pkgver=0.03 +pkgrel=0 +pkgdesc="Software to access the the Netgear Storage Central 101 (sc101) as a block device, without requiring a new kernel module." +url="http://code.google.com/p/sc101-nbd/" +arch="all" +license="GNU GPL v2" +depends="" +depends_dev="gzip" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-doc" +source="http://sc101-nbd.googlecode.com/files/sc101-nbd_${pkgver}.tar.gz" + +_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" + make || return +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la +} + +md5sums="92cc1a4f11c971fede8e0a1e69e1ce2d sc101-nbd_0.03.tar.gz" |