summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b8827f91f28119f021cd5fc686aba03c10baf4d6 (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
# Maintainer: Caleb Maclennan <caleb@alerque.com>

pkgname=u2o-git
pkgver=0.7.r0.gb8194e0
pkgrel=1
_branch=master
pkgdesc='USFM to OSIS bible format converter'
arch=(any)
url=https://github.com/adyeths/u2o
license=(Unlicense)
depends=(python)
makedepends=(git)
provides=("${pkgname%-git}=$pkgver")
conflicts=("${pkgname%-git}")
source=("git+$url.git#branch=$_branch")
sha256sums=('SKIP')

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

package() {
	cd "${pkgname%-git}"
	install -Dm0755 u2o.py "$pkgdir/usr/bin/u2o"
	install -Dm0755 utaglist.py "$pkgdir/usr/bin/utaglist"
}