blob: 392eabc6eb357e77f68beab800e52d00461f932f (
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
|
# Maintainer: Jiachen YANG <farseerfc@archlinux.org>
# Contributor: Christopher A. Williamson <home@chrisaw.com>
pkgname='python-dbus-client-gen'
_srcname='dbus-python-client-gen'
pkgver=0.8.3
pkgrel=4
pkgdesc='A Python Library for Generating dbus-python Client Code'
arch=('any')
license=('MPL2')
url='https://stratis-storage.github.io/'
depends=('dbus-python' 'dbus-client-gen' 'python-into-dbus')
makedepends=('git' 'python-pylint' 'python-setuptools')
source=(
"${_srcname}-${pkgver}.tar.gz::https://github.com/stratis-storage/${_srcname}/archive/v${pkgver}.tar.gz"
)
sha256sums=('d9e93ad8d7011e843123248f127dbe7b394bf5d3c4e7367cf05bed112df8b384')
check() {
cd "${_srcname}-${pkgver}"
PYTHONPATH=src python -m unittest discover -vs .
}
package() {
cd "${_srcname}-${pkgver}"
install -d -m 755 "${pkgdir}/usr/share/licenses/${pkgname}"
install -m 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}"
python setup.py install --root="${pkgdir}" --optimize=1
}
# vim: ts=2 sw=2 et:
|