summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 950d884e15f2902eae36caf955ebf0a0ba05f8e6 (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
# Maintainer: Markus Koch <markus@notsyncing.net>

pkgname=python-fx2-git
pkgver=v0.13.r0.g0aac428
pkgrel=2
pkgdesc="Allow interacting with Cypress EZ-USB FX2 series microcontrollers"
arch=('any')
url='https://github.com/whitequark/libfx2'
license=('0BSD')
depends=(python)
makedepends=(python-setuptools)
source=("git+https://github.com/whitequark/libfx2.git")
sha256sums=('SKIP')
provides=('python-fx2')

pkgver() {
	cd "$srcdir/libfx2"
	git describe --tags --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "$srcdir/libfx2/software"
	python setup.py build
}

package() {
	cd "$srcdir/libfx2/software"
	python setup.py install --optimize=1 --root="${pkgdir}/"
}