# Maintainer: damir <damir@archlinux.org>
# Contributor: Mark Rosenstand <mark@borkware.net>

pkgname=libifp
pkgver=1.0.0.2
pkgrel=7
pkgdesc="General-purpose library-driver for iRiver's iFP portable audio players"
arch=('x86_64')
license=('GPL')
url="http://ifp-driver.sourceforge.net/libifp/"
depends=('libusb-compat')
source=(https://downloads.sourceforge.net/sourceforge/ifp-driver/${pkgname}-${pkgver}.tar.gz)
sha512sums=('538ddcf0be4bf7427a7f8ebb60ec77f22b69aa26055fc279f884bd82bae4e32267c79ac37f4dcf9970806e520549bc93dbf0aa2501c9c4fc699a6855e757a331')

build() {
  cd ${pkgname}-${pkgver}
  ./configure --prefix=/usr --mandir=/usr/share/man --with-libusb
  make
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
}
