blob: 78ad311cd1776a85b4aed68720cd085f1e686ecb (
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
|
# Maintainer: DanielNak <daniel@tee.cat>
# Python package author: Ines Montani <ines@explosion.ai>
pkgname=python-wasabi-git
_origpkgname=wasabi
pkgver=0.9.0.r224.4cb261c
pkgrel=3
pkgdesc="A lightweight console printing and formatting toolkit"
arch=("x86_64")
url="https://github.com/ines/wasabi"
license=("MIT")
depends=('python')
makedepends=("python-setuptools")
provides=('python-wasabi')
conflicts=('python-wasabi')
source=("git+https://github.com/ines/$_origpkgname.git")
md5sums=('SKIP')
prepare() {
cd "$_origpkgname"
git checkout $(curl https://api.github.com/repos/ines/$_origpkgname/releases/ | grep tag_name | cut -d '"' -f4 | head -n 1)
}
pkgver() {
cd "$_origpkgname"
printf "%s.r%s.%s" "$(cat wasabi/about.py | grep -i version | grep -v '#' | cut -d '"' -f2 | head -n 1)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "$_origpkgname"
python setup.py install --root="${pkgdir}/" --optimize=1
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|