mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-04 01:07:15 +08:00
30 lines
709 B
Bash
30 lines
709 B
Bash
# Contributions from ArchLinux: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/libusb
|
|
|
|
pkgname=libusb
|
|
pkgver=1.0.21
|
|
pkgrel=1
|
|
depends=('glibc' 'systemd')
|
|
pkgdesc="Library that provides generic access to USB device"
|
|
arch=('x86_64')
|
|
url='http://libusb.info/'
|
|
license=('LGPL')
|
|
replaces=('libusb1' 'libusbx')
|
|
provides=("libusbx=$pkgver")
|
|
conflicts=('libusbx')
|
|
source=(https://github.com/libusb/libusb/releases/download/v$pkgver/libusb-$pkgver.tar.bz2)
|
|
md5sums=('1da9ea3c27b3858fa85c5f4466003e44')
|
|
|
|
build() {
|
|
cd $pkgname-$pkgver
|
|
./configure --prefix=/usr
|
|
make -j1
|
|
}
|
|
|
|
check() {
|
|
make -C $pkgname-$pkgver check
|
|
}
|
|
|
|
package () {
|
|
make -C $pkgname-$pkgver DESTDIR="$pkgdir" install
|
|
}
|