blob: e83517886081dec792d4f0f3634c1d062a223bcb (
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
|
# Maintainer: Jiachen YANG <farseerfc@archlinux.org>
# Contributor: Christopher A. Williamson <home@chrisaw.com>
pkgname='python-dbus-signature-pyparsing'
_srcname='dbus-signature-pyparsing'
pkgver=0.4.1
pkgrel=4
pkgdesc='A Parser for a D-Bus Signature'
arch=('any')
license=('Apache')
url='https://github.com/stratis-storage/dbus-signature-pyparsing/releases'
depends=('python-pyparsing')
makedepends=('python-setuptools' 'git')
checkdepends=('python-hypothesis' 'python-hs-dbus-signature')
source=(
"${_srcname}-${pkgver}.tar.gz::https://github.com/stratis-storage/${_srcname}/archive/v${pkgver}.tar.gz"
)
sha256sums=('dae2cfa1326e5fcdd13a102f259dcd02130d7e6cc667ade3aa82a61984cc3338')
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:
|