blob: 60cba21d2792355a77c1e2ace28561467f65c04a (
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
|
pkgname=python-asciitree-git
pkgver=r51.66a66b2
pkgrel=1
pkgdesc="draws tree structures using characters."
arch=('any')
url="https://github.com/mbr/asciitree"
license=('MIT')
provides=('python-asciitree')
conflicts=('python-asciitree')
depends=('python')
makedepends=('git')
source=("$pkgname"::'git+https://github.com/mbr/asciitree.git')
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
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 --root="$pkgdir" --optimize=1 --skip-build
install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
}
|