diff options
Diffstat (limited to 'main/usbutils/APKBUILD')
-rw-r--r-- | main/usbutils/APKBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/main/usbutils/APKBUILD b/main/usbutils/APKBUILD new file mode 100644 index 000000000..ff72e441e --- /dev/null +++ b/main/usbutils/APKBUILD @@ -0,0 +1,32 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=usbutils +pkgver=002 +pkgrel=0 +pkgdesc="USB Device Utilities" +url="http://linux-usb.sourceforge.net/" +arch="all" +license="GPL" +subpackags="$pkgname-doc" +depends= +makedepends="pkgconfig libusb-compat-dev" +source="http://www.kernel.org/pub/linux/utils/usb/$pkgname/$pkgname-$pkgver.tar.gz" + +build() { + cd "$srcdir"/$pkgname-$pkgver + rm usb.ids + wget http://www.linux-usb.org/usb.ids + ./configure --prefix=/usr \ + --datadir=/usr/share/hwdata \ + --disable-zlib + make || return 1 +} + +package() { + cd "$srcdir"/$pkgname-$pkgver + make DESTDIR="$pkgdir" install + mkdir -p "$pkgdir"/usr/lib/ + mv "$pkgdir"/usr/share/pkgconfig \ + "$pkgdir"/usr/lib/ +} + +md5sums="05610d15c3c8c8ada3d691c320ca784a usbutils-002.tar.gz" |