summaryrefslogtreecommitdiff
path: root/pcr/python-libusb1/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-05-30 18:40:33 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-05-30 19:16:51 -0300
commit71bb28df7bb070bb8e0b22d5f1e17249b004e73e (patch)
treee10ecf2dd37e574b4178b4a4c21e49ec2aedd604 /pcr/python-libusb1/PKGBUILD
parent16a274f3611ff00ccc44c96694a9e69147b4e26a (diff)
downloadabslibre-71bb28df7bb070bb8e0b22d5f1e17249b004e73e.tar.gz
abslibre-71bb28df7bb070bb8e0b22d5f1e17249b004e73e.tar.bz2
abslibre-71bb28df7bb070bb8e0b22d5f1e17249b004e73e.zip
python-libusb1: add new package to [pcr] - Packaging request #985 -> https://labs.parabola.nu/issues/985
Diffstat (limited to 'pcr/python-libusb1/PKGBUILD')
-rw-r--r--pcr/python-libusb1/PKGBUILD28
1 files changed, 28 insertions, 0 deletions
diff --git a/pcr/python-libusb1/PKGBUILD b/pcr/python-libusb1/PKGBUILD
new file mode 100644
index 000000000..a6576e2b5
--- /dev/null
+++ b/pcr/python-libusb1/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer (Arch): vorpalblade77@gmail.com
+pkgname=python-libusb1
+_pkgname=libusb1
+pkgver=1.5.0
+pkgrel=1
+pkgdesc="Pure python wrapper for libusb"
+arch=('any')
+url="https://github.com/vpelletier/${pkgname}"
+license=('GPL2')
+makedepends=('git' 'python-distutils-extra' 'python-setuptools')
+depends=('python' 'libusbx')
+optdepends=()
+conflicts=("${pkgname}-git")
+changelog='changelog.txt'
+source=("git+https://github.com/vpelletier/${pkgname}.git")
+md5sums=('SKIP')
+
+build() {
+ cd "${srcdir}/${pkgname}"
+ python setup.py build
+}
+
+package() {
+ cd "${srcdir}/${pkgname}"
+ python setup.py install --root="${pkgdir}" \
+ --prefix="/usr" \
+ --compile -O1
+}