summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 150eb733e44b79b513c5b1e51dfb4a9aae67cdd2 (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
# Maintainer: Rafael Fontenelle <rafaelff@gnome.org>
pkgbase=python-gettext
pkgname=('python-gettext' 'python2-gettext')
pkgver=4.0
pkgrel=2
pkgdesc="Python implementation of Gettext"
arch=('any')
url="https://pypi.org/project/python-gettext/"
license=('GPL3')
makedepends=('python-setuptools' 'python2-setuptools')
source=("https://pypi.org/packages/source/${pkgbase:0:1}/$pkgbase/$pkgbase-$pkgver.tar.gz")
sha256sums=('626b501a51ac892fc3460cf550e60dca121f544eaa46eb69c90ce4682fc7ec02')

prepare() {
    cp -a python{,2}-gettext-$pkgver
}

package_python-gettext() {
    cd "$pkgname-$pkgver"
    python setup.py install --root="$pkgdir/" --prefix="/usr" --optimize=1
}

package_python2-gettext() {
    cd "$pkgname-$pkgver"
    python2 setup.py install --root="$pkgdir/" --prefix="/usr" --optimize=1
}