mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 05:47:13 +02:00
main/libusb: modernise, add check
This commit is contained in:
parent
145f8fbe4b
commit
1ccbed2830
@ -2,7 +2,7 @@
|
|||||||
pkgname=libusb
|
pkgname=libusb
|
||||||
pkgver=1.0.21
|
pkgver=1.0.21
|
||||||
_ver=${pkgver/_/-}
|
_ver=${pkgver/_/-}
|
||||||
pkgrel=0
|
pkgrel=1
|
||||||
pkgdesc="Library to enable user space application programs to communicate with USB devices"
|
pkgdesc="Library to enable user space application programs to communicate with USB devices"
|
||||||
url="http://libusb.info/"
|
url="http://libusb.info/"
|
||||||
arch="all"
|
arch="all"
|
||||||
@ -13,32 +13,26 @@ makedepends="linux-headers"
|
|||||||
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2
|
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2
|
||||||
"
|
"
|
||||||
|
|
||||||
_builddir="$srcdir"/$pkgname-$_ver
|
builddir="$srcdir"/$pkgname-$_ver
|
||||||
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() {
|
build() {
|
||||||
cd "$_builddir"
|
cd "$builddir"
|
||||||
./configure \
|
./configure \
|
||||||
--build=$CBUILD \
|
--build=$CBUILD \
|
||||||
--host=$CHOST \
|
--host=$CHOST \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--disable-udev \
|
--disable-udev
|
||||||
|| return 1
|
make -j1
|
||||||
make -j1 || return 1
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cd "$builddir"
|
||||||
|
make check
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$_builddir"
|
cd "$builddir"
|
||||||
make DESTDIR="$pkgdir" install || return 1
|
make DESTDIR="$pkgdir" install
|
||||||
}
|
}
|
||||||
md5sums="1da9ea3c27b3858fa85c5f4466003e44 libusb-1.0.21.tar.bz2"
|
|
||||||
sha256sums="7dce9cce9a81194b7065ee912bcd55eeffebab694ea403ffb91b67db66b1824b libusb-1.0.21.tar.bz2"
|
|
||||||
sha512sums="015ca07bdb559aa40af5db1302ab0b1c8a30d593699fe2f3c9f45162673dc7b608cecc58d60fde8f3bde2a68370794a045e8efa48fc55402eece11261e525762 libusb-1.0.21.tar.bz2"
|
sha512sums="015ca07bdb559aa40af5db1302ab0b1c8a30d593699fe2f3c9f45162673dc7b608cecc58d60fde8f3bde2a68370794a045e8efa48fc55402eece11261e525762 libusb-1.0.21.tar.bz2"
|
||||||
|
Loading…
Reference in New Issue
Block a user