summaryrefslogtreecommitdiffstats
path: root/abs/core/python_modules/python2-functools32/PKGBUILD
blob: b6d9078cd7ccb271aa0a6448294f80bb7029dce6 (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
# Maintainer: 
# Contributor: Stephan Conrad

pkgname=python2-functools32
_pkgver=3.2.3-2
pkgver=${_pkgver//-/_}
pkgrel=1
pkgdesc="Backport of the functools module from Python 3.2.3 for use on 2.7 and PyPy"
url="https://github.com/MiCHiLU/python-functools32"
arch=(any)
depends=(python2)
makedepends=(python2-distribute)
license=('CUSTOM')
source=("https://pypi.python.org/packages/source/f/functools32/functools32-$_pkgver.tar.gz")
md5sums=('09f24ffd9af9f6cd0f63cb9f4e23d4b2')

build() {
    cd functools32-$_pkgver
    python2 setup.py build
}

package() {
    cd functools32-$_pkgver
    python2 setup.py install --root="$pkgdir" --optimize=1

    install -d "$pkgdir"/usr/share/licenses/$pkgname
    install -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/
}