mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-31 22:32:14 +01:00
45 lines
1.1 KiB
Plaintext
45 lines
1.1 KiB
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=libusb
|
|
pkgver=1.0.20
|
|
_ver=${pkgver/_/-}
|
|
pkgrel=0
|
|
pkgdesc="Library to enable user space application programs to communicate with USB devices"
|
|
url="http://libusb.info/"
|
|
arch="all"
|
|
license="LGPL2+"
|
|
subpackages="$pkgname-dev"
|
|
replaces="libusbx"
|
|
makedepends="linux-headers"
|
|
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2
|
|
"
|
|
|
|
_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() {
|
|
cd "$_builddir"
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--disable-udev \
|
|
|| return 1
|
|
make -j1 || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
make DESTDIR="$pkgdir" install || return 1
|
|
}
|
|
md5sums="1d4eb194eaaa2bcfbba28102768c7dbf libusb-1.0.20.tar.bz2"
|
|
sha256sums="cb057190ba0a961768224e4dc6883104c6f945b2bf2ef90d7da39e7c1834f7ff libusb-1.0.20.tar.bz2"
|
|
sha512sums="4230047dbc18db402f399a6b228f70da37ce4f9da9d57203e5c31cf0edec5ddd664865b4f16038a2ae72c26097e713b709b9e882a11b65a274e84993d617c765 libusb-1.0.20.tar.bz2"
|