25 lines
773 B
Bash
25 lines
773 B
Bash
# Maintainer: Jesus E. <heckyel@riseup.net>
|
|
|
|
pkgname=libusb-compat
|
|
pkgver=0.1.7
|
|
pkgrel=1
|
|
pkgdesc="A compatibility layer allowing applications written for libusb-0.1 to work with libusb-1.0"
|
|
arch=('i686' 'x86_64')
|
|
url="https://libusb.info/"
|
|
license=('LGPL-2')
|
|
depends=('libusb' 'sh')
|
|
source=("https://github.com/libusb/libusb-compat-0.1/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz")
|
|
sha512sums=('8f3b2f9a275987b13278215b28950f9bc4c4cd30d3dc08ff5141ed6486d484981d059588533857eb521a5362ce2eb74c9f9c98f3d0c59d9a288debf9fc95a882')
|
|
|
|
build() {
|
|
cd ${pkgname}-${pkgver}
|
|
./configure --prefix=/usr --disable-static
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${pkgname}-${pkgver}
|
|
make DESTDIR="${pkgdir}" install
|
|
install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
|
|
}
|