diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-02-10 23:59:38 -0600 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2018-02-17 13:38:34 +0000 |
commit | 145f8fbe4b8f581e3dc9294d15a333ded2dc8414 (patch) | |
tree | c1e024c638bbc919a2c7958072db50434f498fc7 /main | |
parent | 2c19669b1c5f1926e8e4ef187fdb1c833acbc0c7 (diff) | |
download | aports-145f8fbe4b8f581e3dc9294d15a333ded2dc8414.tar.bz2 aports-145f8fbe4b8f581e3dc9294d15a333ded2dc8414.tar.xz |
main/libusb-compat: modernise, mark no tests, fix license
Diffstat (limited to 'main')
-rw-r--r-- | main/libusb-compat/APKBUILD | 36 |
1 files changed, 9 insertions, 27 deletions
diff --git a/main/libusb-compat/APKBUILD b/main/libusb-compat/APKBUILD index 023b751c60..a3561bb169 100644 --- a/main/libusb-compat/APKBUILD +++ b/main/libusb-compat/APKBUILD @@ -1,48 +1,30 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=libusb-compat pkgver=0.1.5 -pkgrel=3 +pkgrel=4 pkgdesc="Compatility for older libusb" url="http://libusb.sourceforge.net/" arch="all" -license="LGPL" +options="!check" # No test suite. +license="LGPL-2.1+" subpackages="$pkgname-dev" depends= -depends_dev="libusb-dev" -makedepends="$depends_dev" +makedepends="libusb-dev" source="http://downloads.sourceforge.net/libusb/$pkgname-$pkgver.tar.bz2 fix-headers.patch" -_builddir="$srcdir/$pkgname-$pkgver" - -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} - build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ - --prefix=/usr \ - --disable-build-docs \ - || return 1 - make || return 1 + --prefix=/usr + make } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install } -md5sums="2780b6a758a1e2c2943bdbf7faf740e4 libusb-compat-0.1.5.tar.bz2 -838bcaa34a4937f945069b79bc283a6f fix-headers.patch" -sha256sums="404ef4b6b324be79ac1bfb3d839eac860fbc929e6acb1ef88793a6ea328bc55a libusb-compat-0.1.5.tar.bz2 -00844389cf8393a12c1f5a30659dbd7f14fa14da99d14217768cc9f14515ada2 fix-headers.patch" sha512sums="fe63bd1c65e67588a83ebfdd329025ecf75f33f877fb80dd83eb528df057efb591e010416027f9054294504562299166e8e2811a7681fa1967a03baae9b88857 libusb-compat-0.1.5.tar.bz2 3abb7e90299f6cdb397b4fcf1b7af0bfc20cc3b0937e0787716109608313bc988ce3532ed88ba4d05e7d57bdaca3de4b5ce704e0a3d4bf871c48ac03103a18d7 fix-headers.patch" |