diff options
author | ValdikSS | 2015-06-10 14:13:05 +0300 |
---|---|---|
committer | ValdikSS | 2015-06-10 14:13:05 +0300 |
commit | e718efe75be680726d0c7258aa39639a23d8022e (patch) | |
tree | b67f411d80a448dde339c3f7b0d1e1be5733420d | |
download | aur-e718efe75be680726d0c7258aa39639a23d8022e.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 28 |
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..dcf81b975410 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = libusb0 + pkgdesc = Library to enable user space application programs to communicate with USB devices. 0.x branch. Debian's binary. + pkgver = 0.1.12 + pkgrel = 5 + url = http://libusb.sourceforge.net/ + arch = i686 + arch = x86_64 + license = LGPL + depends = sh + provides = libusb-compat + conflicts = libusb-compat + source = http://ftp.debian.org/debian/pool/main/libu/libusb/libusb-0.1-4_0.1.12-25_i386.deb + md5sums = 582aee4738aecee1ad2d4c725510b419 + +pkgname = libusb0 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1faa3b3226cd --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: ValdikSS <iam@valdikss.org.ru> + +pkgname=libusb0 +pkgver=0.1.12 +pkgrel=5 +pkgdesc="Library to enable user space application programs to communicate with USB devices. 0.x branch. Debian's binary." +arch=('i686' 'x86_64') +url="http://libusb.sourceforge.net/" +license=('LGPL') +depends=('sh') +provides=('libusb-compat') +#replaces=('libusb-compat') +conflicts=('libusb-compat') +_debianver='0.1-4_0.1.12-25' +source=("http://ftp.debian.org/debian/pool/main/libu/libusb/libusb-${_debianver}_i386.deb") +md5sums=('582aee4738aecee1ad2d4c725510b419') + +if test "$CARCH" == x86_64; then + source=("http://ftp.debian.org/debian/pool/main/libu/libusb/libusb-${_debianver}_amd64.deb") +fi + +package() { + tar axvf ${srcdir}/data.tar.xz -C ${pkgdir}/ + mkdir -p ${pkgdir}/usr/lib + mv ${pkgdir}/lib/x86_64-linux-gnu/* ${pkgdir}/usr/lib || true + mv ${pkgdir}/lib/i386-linux-gnu/* ${pkgdir}/usr/lib || true + rm -rf ${pkgdir}/lib/x86_64-linux-gnu/ ${pkgdir}/lib/i386-linux-gnu/ +} |