summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 654b2e53174cdc6cff425ac2187021d212eabd6a (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
# Maintainer: WorMzy Tykashi <wormzy.tykashi@gmail.com>
# Contributor: yugrotavele <yugrotavele at archlinux dot us>
# Contributor: Jan de Groot <jgc@archlinux.org>

pkgname=libnjb
pkgver=2.2.7
pkgrel=3
pkgdesc="Library for communicating with various portable MP3 players"
arch=('i686' 'x86_64')
url="https://libnjb.sourceforge.net/"
license=('BSD')
depends=('libusb-compat' 'ncurses' 'zlib')
makedepends=('doxygen')
source=(https://downloads.sourceforge.net/sourceforge/libnjb/${pkgname}-${pkgver}.tar.gz
        45-libnjb.rules)
md5sums=('73f25f3297abe316dd0abec921781d50' 
         '17b83c2469e083bf1f273174d91dfa13')

build() {
  cd ${pkgname}-${pkgver}
  ./configure --prefix=/usr --disable-hotplugging
  make
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
  install -D -m644 "${srcdir}/45-libnjb.rules" "${pkgdir}/usr/lib/udev/rules.d/45-libnjb.rules"
  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}