aboutsummaryrefslogtreecommitdiffstats
path: root/community/libnjb/APKBUILD
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-03-16 02:26:02 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-03-23 12:07:30 -0300
commit41ab224df12b8487004a1522b4f671680c082954 (patch)
tree9ebbc4ea5d1cfb82757ca1fd862b67e444a712a2 /community/libnjb/APKBUILD
parent1f40937c55d742c7ae05db34c966c3dd2d6595e7 (diff)
downloadaports-41ab224df12b8487004a1522b4f671680c082954.tar.gz
aports-41ab224df12b8487004a1522b4f671680c082954.tar.bz2
aports-41ab224df12b8487004a1522b4f671680c082954.tar.xz
community/*: move lots of stuff from main and modernize
Diffstat (limited to 'community/libnjb/APKBUILD')
-rw-r--r--community/libnjb/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/community/libnjb/APKBUILD b/community/libnjb/APKBUILD
new file mode 100644
index 0000000000..1562c20574
--- /dev/null
+++ b/community/libnjb/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libnjb
+pkgver=2.2.7
+pkgrel=4
+pkgdesc="A software library for talking to the Creative Nomad Jukeboxes and Dell DJs"
+url="http://libnjb.sourceforge.net/"
+arch="all"
+license="BSD-3-Clause"
+depends_dev="libusb-compat-dev"
+makedepends="$depends_dev eudev-dev zlib-dev ncurses-dev"
+subpackages="$pkgname-dev $pkgname-examples"
+source="http://download.sourceforge.net/libnjb/libnjb-$pkgver.tar.gz"
+
+prepare() {
+ default_prepare
+ update_config_sub
+}
+
+build() {
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var
+ make
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+}
+
+examples() {
+ pkgdesc="Example programs for libnjb"
+ mkdir -p "$subpkgdir"/usr
+ mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
+}
+
+sha512sums="d217beb772024ec122739327dae9f1e991ace4c3dfe79a4960d1d7421c3d663f924304331025a1790ea7b697ac84d8926f3ab507c6d919e781e90ca82ef6fd06 libnjb-2.2.7.tar.gz"