blob: 00b702ed7ad98e0f2a620790de019197c5dca464 (
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: SteamedFish <steamedfish@hotmail.com>
pkgname=python-digiham-git
pkgver=0.6.2.r8.g65fe48d
pkgrel=2
pkgdesc="Python bindings for the digiham library."
arch=('x86_64' 'aarch64')
url="https://github.com/jketterl/pydigiham"
license=('GPL3')
depends=('digiham' 'python' 'gcc-libs')
makedepends=('git' 'python-setuptools')
conflicts=('python-digiham')
provides=('python-digiham')
source=("$pkgname"::"git+https://github.com/jketterl/pydigiham.git#branch=develop")
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)"
)
}
build() {
cd "$srcdir/$pkgname"
python setup.py build
}
package() {
cd "$srcdir/$pkgname"
python setup.py install --prefix=/usr --root="$pkgdir" --skip-build --optimize=1
}
|