blob: 53cc2be9c0b0600df296650a2370d8d3d9e4e0b7 (
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: Erik Bročko <erik.brocko@letemsvetemapplem.eu>
pkgname=python-js8py-git
pkgver=0.1.2.r5.g391347d
pkgrel=1
pkgdesc="python module for parsing messages from the "js8" command line decoder"
arch=('x86_64')
url="https://github.com/jketterl/js8py"
license=('GPL3')
makedepends=('git' 'python-setuptools' 'python-nose')
depends=('python')
provides=('js8py')
source=("$pkgname"::'git+https://github.com/jketterl/js8py')
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
# use git tag or fall back to number of revisions
( set -o pipefail
git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
check(){
cd "$srcdir/$pkgname"
nosetests
}
package() {
cd "$srcdir/$pkgname"
python setup.py install --root="${pkgdir}/" --optimize=1
}
|