summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e4357824fd8eee9aedc89423d36fbd67a1dfb464 (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=3.0
pkgrel=1
pkgdesc="Python implementation of Gettext"
arch=('any')
url="https://github.com/hannosch/python-gettext"
license=('GPL3')
makedepends=('python-setuptools' 'python2-setuptools')
source=("$pkgname-$pkgver.tar.gz::https://github.com/hannosch/$pkgname/archive/$pkgver.tar.gz")
sha256sums=('a4bcc3cdb0a7f2068aa221c4f765c98468b62277f4b65170ffa6244e3456f451')

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
}