2014-05-30 20:27:24 +08:00
|
|
|
# maintainer: Neophytos Kolokotronis <tetris4ATgmailDOTcom>
|
|
|
|
# Contributors: abveritas
|
2012-06-23 06:05:14 +08:00
|
|
|
|
|
|
|
pkgname=libusbx
|
2014-05-30 20:27:24 +08:00
|
|
|
pkgver=1.0.18
|
2012-06-23 06:05:14 +08:00
|
|
|
pkgrel=1
|
|
|
|
depends=('glibc')
|
|
|
|
pkgdesc="Library that provides generic access to USB device"
|
2014-05-30 20:27:24 +08:00
|
|
|
arch=(x86_64)
|
2012-06-23 06:05:14 +08:00
|
|
|
url="http://libusbx.org"
|
|
|
|
license=('LGPL')
|
2012-09-09 12:17:16 +08:00
|
|
|
source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2)
|
2012-06-23 06:05:14 +08:00
|
|
|
options=(!libtool)
|
|
|
|
replaces=('libusb1' 'libusb')
|
|
|
|
provides=("libusb=$pkgver")
|
|
|
|
conflicts=("libusb")
|
2014-05-30 20:27:24 +08:00
|
|
|
md5sums=('f2ccd0589dde901dfd5607459f77bf44')
|
2012-06-23 06:05:14 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
2012-09-09 12:17:16 +08:00
|
|
|
./configure --prefix=/usr --disable-static
|
2012-06-23 06:05:14 +08:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
2012-09-09 12:17:16 +08:00
|
|
|
check() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
make check
|
|
|
|
}
|
|
|
|
|
2012-06-23 06:05:14 +08:00
|
|
|
package () {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
}
|