summaryrefslogtreecommitdiff
path: root/pcr/python-libusb1/PKGBUILD
blob: 436d8e72d461898a561582b4d3ed38020b9ddda6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer (AUR): vorpalblade77@gmail.com

# parabola changes and rationale:
#  no changes.

pkgname=python-libusb1
_pkgname=libusb1
pkgver=1.7
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=("https://github.com/vpelletier/python-libusb1/archive/${pkgver}.tar.gz")
sha256sums=('efd174cc9151f56437102651be07857b873ffab77e58052576aa3ac2ab059c46')

build() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	python setup.py build
}

package() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	python setup.py install --root="${pkgdir}" \
	--prefix="/usr" \
	--compile -O1
}