diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-01-04 13:31:00 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-01-04 13:31:00 +0000 |
commit | e62cd91c2cdd82b2443b0afb8180e2e468d28b34 (patch) | |
tree | 07cc88c88272b97f02913d49e183206230ca3d89 /main/libnjb | |
parent | 7c0587db535c763ee483ea0fb06147788e359cc4 (diff) | |
download | aports-e62cd91c2cdd82b2443b0afb8180e2e468d28b34.tar.bz2 aports-e62cd91c2cdd82b2443b0afb8180e2e468d28b34.tar.xz |
main/libnjb: moved from testing
Diffstat (limited to 'main/libnjb')
-rw-r--r-- | main/libnjb/APKBUILD | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/main/libnjb/APKBUILD b/main/libnjb/APKBUILD new file mode 100644 index 0000000000..186d87e744 --- /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" |