aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-01-04 12:28:29 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-01-04 12:28:29 +0000
commit64c2391c41dbf001da5a1a6243b97643564c8eea (patch)
tree58b0a8ecc98f2e979dbf6aee1ec9014104bbc7f0 /testing
parent4be6a2a424b2ac117089088c8b00e26008d44156 (diff)
downloadaports-64c2391c41dbf001da5a1a6243b97643564c8eea.tar.bz2
aports-64c2391c41dbf001da5a1a6243b97643564c8eea.tar.xz
testing/libnjb: new aport
A software library for talking to the Creative Nomad Jukeboxes and Dell DJs http://libnjb.sourceforge.net/
Diffstat (limited to 'testing')
-rw-r--r--testing/libnjb/APKBUILD51
1 files changed, 51 insertions, 0 deletions
diff --git a/testing/libnjb/APKBUILD b/testing/libnjb/APKBUILD
new file mode 100644
index 0000000000..186d87e744
--- /dev/null
+++ b/testing/libnjb/APKBUILD
@@ -0,0 +1,51 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libnjb
+pkgver=2.2.7
+pkgrel=0
+pkgdesc="A software library for talking to the Creative Nomad Jukeboxes and Dell DJs"
+url="http://libnjb.sourceforge.net/"
+arch="all"
+license="BSD"
+depends=""
+depends_dev="libusb-compat-dev"
+makedepends="$depends_dev udev-dev zlib-dev ncurses-dev"
+install=""
+subpackages="$pkgname-dev $pkgname-examples"
+source="http://download.sourceforge.net/libnjb/libnjb-$pkgver.tar.gz"
+
+_builddir="$srcdir"/libnjb-$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 --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+examples() {
+ pkgdesc="Example programs for libnjb"
+ mkdir -p "$subpkgdir"/usr
+ mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
+}
+
+md5sums="73f25f3297abe316dd0abec921781d50 libnjb-2.2.7.tar.gz"