blob: 591785d5d9aad16c05c57fc89c2dcf218dbc3be3 (
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
35
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
pkgname=python-usfm2osis-git
_pypiname=usfm2osis
pkgver=r94.c52fc37
pkgrel=1
_branch=master
pkgdesc='Tools for converting Bibles from USFM to OSIS XML'
arch=('any')
url='https://github.com/chrislit/usfm2osis'
license=('GPLv3')
makedepends=('git' 'python-setuptools')
depends=('python')
options=(!emptydirs)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git://github.com/chrislit/$_pypiname.git#branch=$_branch")
sha256sums=('SKIP')
pkgver() {
cd "$_pypiname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$_pypiname"
mv usfm2osis/scripts/*py usfm2osis/
sed -i -e 's/usfm2osis.scripts/usfm2osis/g' setup.py
python setup.py build
}
package() {
cd "$_pypiname"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}
|