summaryrefslogtreecommitdiffstats
path: root/main/libnjb/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/libnjb/APKBUILD')
-rw-r--r--main/libnjb/APKBUILD51
1 files changed, 51 insertions, 0 deletions
diff --git a/main/libnjb/APKBUILD b/main/libnjb/APKBUILD
new file mode 100644
index 000000000..186d87e74
--- /dev/null
+++ b/main/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"