summaryrefslogtreecommitdiff
path: root/user/usbutils/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-27 02:30:54 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-27 02:30:54 -0500
commit72cc1f6ff5fc4c6cc1614bd916b3c0a42f66e634 (patch)
treebd9cacf4aee895ebdc25f147febae3de0859f804 /user/usbutils/APKBUILD
parent24ebc6cd6abc690877dedf82800bceb7eafcc82c (diff)
downloadpackages-72cc1f6ff5fc4c6cc1614bd916b3c0a42f66e634.tar.gz
packages-72cc1f6ff5fc4c6cc1614bd916b3c0a42f66e634.tar.bz2
packages-72cc1f6ff5fc4c6cc1614bd916b3c0a42f66e634.tar.xz
packages-72cc1f6ff5fc4c6cc1614bd916b3c0a42f66e634.zip
user/usbutils: pull in, bump to 010, fix license, etc
Diffstat (limited to 'user/usbutils/APKBUILD')
-rw-r--r--user/usbutils/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/user/usbutils/APKBUILD b/user/usbutils/APKBUILD
new file mode 100644
index 000000000..69287b8ff
--- /dev/null
+++ b/user/usbutils/APKBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=usbutils
+pkgver=010
+pkgrel=0
+pkgdesc="USB utilities"
+url="http://linux-usb.sourceforge.net/"
+arch="all"
+license="GPL-2.0+ AND GPL-2.0-only"
+subpackages="$pkgname-doc"
+depends="hwdata-usb"
+makedepends="libusb-dev eudev-dev"
+source="https://mirrors.kernel.org/pub/linux/utils/usb/usbutils/$pkgname-$pkgver.tar.xz
+ hwdata.patch
+ "
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --datadir=/usr/share/hwdata \
+ --disable-usbids \
+ --disable-zlib
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="8bc197307bc34b38c406c58c939be32f0b20ce9d3e7c977472fe4c3d47e791765432e381fd8d7393df621bbd4bf159ca24a08b22441770e7ae464e767f99a2e3 usbutils-010.tar.xz
+8e2839ec483797f6f97c0258f8fda0b3a56858787a69fe04ce7c0e8a98fd0f4d6640c68df9294d0e9bc36c57f7c6a44d74882176477ea3ffe44716d5bbb35a82 hwdata.patch"