Skip to content
Snippets Groups Projects
Commit a463b265 authored by Natanael Copa's avatar Natanael Copa
Browse files

main/libusb-compat: upgrade to 0.1.7 and modernize

parent 57df2daf
No related branches found
No related tags found
No related merge requests found
# Maintainer: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libusb-compat pkgname=libusb-compat
pkgver=0.1.5 pkgver=0.1.7
pkgrel=4 pkgrel=0
pkgdesc="Compatility for older libusb" pkgdesc="Compatility for older libusb"
url="http://libusb.sourceforge.net/" url="https://libusb.info/"
arch="all" arch="all"
options="!check" # No test suite. license="LGPL-2.1-or-later"
license="LGPL-2.1+"
subpackages="$pkgname-dev" subpackages="$pkgname-dev"
depends=
makedepends="libusb-dev" makedepends="libusb-dev"
source="https://downloads.sourceforge.net/libusb/$pkgname-$pkgver.tar.bz2 source="https://github.com/libusb/libusb-compat-0.1/releases/download/v$pkgver/libusb-compat-$pkgver.tar.gz
fix-headers.patch" fix-headers.patch"
prepare() { prepare() {
...@@ -19,7 +17,6 @@ prepare() { ...@@ -19,7 +17,6 @@ prepare() {
} }
build() { build() {
cd "$builddir"
./configure \ ./configure \
--build=$CBUILD \ --build=$CBUILD \
--host=$CHOST \ --host=$CHOST \
...@@ -27,9 +24,15 @@ build() { ...@@ -27,9 +24,15 @@ build() {
make make
} }
check() {
make check
}
package() { package() {
cd "$builddir"
make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" install
} }
sha512sums="fe63bd1c65e67588a83ebfdd329025ecf75f33f877fb80dd83eb528df057efb591e010416027f9054294504562299166e8e2811a7681fa1967a03baae9b88857 libusb-compat-0.1.5.tar.bz2
3abb7e90299f6cdb397b4fcf1b7af0bfc20cc3b0937e0787716109608313bc988ce3532ed88ba4d05e7d57bdaca3de4b5ce704e0a3d4bf871c48ac03103a18d7 fix-headers.patch" sha512sums="
8f3b2f9a275987b13278215b28950f9bc4c4cd30d3dc08ff5141ed6486d484981d059588533857eb521a5362ce2eb74c9f9c98f3d0c59d9a288debf9fc95a882 libusb-compat-0.1.7.tar.gz
3abb7e90299f6cdb397b4fcf1b7af0bfc20cc3b0937e0787716109608313bc988ce3532ed88ba4d05e7d57bdaca3de4b5ce704e0a3d4bf871c48ac03103a18d7 fix-headers.patch
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment