summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bc0baf2812ca104d0d7fa88cbb4c5d77915a85a9 (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: Lukasz Pozarlik <lpozarlik@gmail.com>

_name="pyluach"
_module="$_name"

pkgname=("python-$_module" "python2-$_module")
pkgdesc="Pyluach is a Python package for manipulating Hebrew dates, Gregorian-Hebrew calendar conversions, and other Jewish calendar related calculations"
pkgver="1.0.1"
pkgrel=1
url="https://github.com/simlist/pyluach"
license=('MIT')
arch=('any')
makedepends=("python-pbr>=1.9" "python2-pbr>=1.9")
source=("https://files.pythonhosted.org/packages/source/${_name:0:1}/$_name/$_name-$pkgver.tar.gz"
"LICENSE")
sha256sums=('4d4ad7a680390d5fe29bf5191939b801fd1b72a85f5c6713038160a265af62f7'
            'a6900a379815872f27df1aac58d8c249ddd085259f6bab6768e162cc82d346b1')

build() {
    cd "$_name-$pkgver"
    python setup.py build
    python2 setup.py build
}

package_python-pyluach(){
    cd "$_name-$pkgver"
    python setup.py install --skip-build --root="$pkgdir" --optimize=1
    install -D --mode 644 --target-directory "$pkgdir/usr/share/licenses/$pkgname" ../LICENSE
}

package_python2-pyluach(){
    cd "$_name-$pkgver"
    python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
    install -D --mode 644 --target-directory "$pkgdir/usr/share/licenses/$pkgname" ../LICENSE
}