blob: e18689a3691c86bc0563e1754296033e801b459c (
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
33
34
35
36
37
|
# Maintainer: Denis Alevi <mail at denisalevi dot de>
pkgname=dpt-rp1-py-git
_name=${pkgname%-git}
pkgver=0.1.6.r4.g6faf448
pkgrel=1
# changed pkgver(), remove after next release (>1.6.0)
epoch=1
pkgdesc='Python package to manage a Sony DPT-RP1'
url='https://github.com/janten/dpt-rp1-py'
arch=('any')
license=('MIT')
depends=('python-httpsig' 'python-requests' 'python-pbkdf2' 'python-urllib3' 'python-yaml' 'python-anytree' 'python-fusepy' 'python-zeroconf')
makedepends=('git' 'python-setuptools')
conflicts=('dpt-rp1-py')
provides=('dpt-rp1-py')
source=("git+https://github.com/janten/${_name}.git")
md5sums=('SKIP')
pkgver() {
cd "${srcdir}/${_name}"
# remove 'v' at start of tag, which is not part of the published package version
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${srcdir}/${_name}"
python setup.py build
}
package() {
cd "${srcdir}/${_name}"
python setup.py install --optimize=1 --root="${pkgdir}" --skip-build
install -D -m 644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
}
# vim:set sw=2 sts=2 et:
|