summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 09e889b7bd1ecd5e572c9ffc7ab2273a9085a6c1 (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: workonfire <kolucki62@gmail.com>

_pkgname=babi
pkgname=$_pkgname-git
pkgver=v1.5.7.r7.g25cb43c
pkgrel=1
pkgdesc="A text editor, eventually..."
arch=('any')
url="https://github.com/asottile/babi"
license=('MIT')
depends=('python-onigurumacffi' 'babi-grammars' 'python-identify')
makedepends=('python-setuptools')
provides=('babi')
conflicts=('babi' 'babi-git')
source=("${pkgname}"::git+https://github.com/asottile/babi.git)
sha256sums=('SKIP')

pkgver() {
    cd "$pkgname"
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "$srcdir/$pkgname"
	python setup.py build
}

package() {
	cd "$srcdir/$pkgname"
	python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}