blob: cffcc16267c681f3a5891768b9e6cf0cd0270e9a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# 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"
depends=""
depends_dev="libusb-compat-dev"
makedepends="$depends_dev eudev-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"
update_config_sub || return 1
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--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
}
examples() {
pkgdesc="Example programs for libnjb"
mkdir -p "$subpkgdir"/usr
mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}
sha512sums="d217beb772024ec122739327dae9f1e991ace4c3dfe79a4960d1d7421c3d663f924304331025a1790ea7b697ac84d8926f3ab507c6d919e781e90ca82ef6fd06 libnjb-2.2.7.tar.gz"
|