blob: d499843d5863e7563530a3c81f0f1004c237b15b (
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
36
|
# Maintainer: Jan Sandberg <jan dot sandberg at gmx dot ch>
pkgname=python-poxls-git
conflicts=('python-poxls')
provides=('python-poxls')
_pkgname=poxls
pkgver=1.6.1.r1.g884e2d7
pkgrel=1
pkgdesc='Convert between Excel and PO files'
url='https://pypi.python.org/pypi/poxls'
arch=('any')
license=('BSD')
_deps=('click' 'openpyxl' 'polib')
makedepends=('git' 'python-setuptools')
depends=("${_deps[@]/#/python-}")
source=("poxls::git+https://github.com/wichert/po-xls.git"
"LICENSE")
sha256sums=('SKIP'
'c909022c938835ff0a322a536315c193732bcd308bae4538fc81cc21896230e1')
pkgver() {
cd "$_pkgname"
git describe --long --tags | sed 's:^release/::;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${srcdir}/${_pkgname}"
python setup.py build
}
package_python-poxls-git() {
depends=('python' "${_deps[@]/#/python-}")
cd "${srcdir}/${_pkgname}"
python setup.py install --skip-build --root="${pkgdir}" --optimize=1
install -D -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|