summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2593d6023c7b9f061366dbf5d909742c7e857712 (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
# Maintainer: Sebastian Weiß <dl3yc at darc dot de>
pkgname=python-mcp2210-python-git
pkgver=75e3c35
pkgrel=1
pkgdesc="An MCP2210 python driver."
arch=(x86_64)
url="https://jeremyherbert.github.io/mcp2210-python/"
license=('')
depends=('python' 'python-distribute' 'python-docutils' 'python-hidapi')
makedepends=('git' 'python-setuptools' 'python-setuptools-scm')

_gitroot='https://github.com/jeremyherbert/mcp2210-python.git'
_gitname='mcp2210-python'

source=("$_gitname::git+$_gitroot")
md5sums=('SKIP')

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

build() {
  cd "$srcdir/$_gitname"
}

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