summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 38753a2737049b7be28c527b03e69ecfa13f47e8 (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
37
38
39

_pipname=simplekv
pkgbase=python-simplekv
pkgname=('python2-simplekv' 'python-simplekv')
pkgver=0.9.3
pkgrel=1
pkgdesc="A key-value storage for binary data, support many backends"
arch=('any')
url="http://github.com/mbr/simplekv"
license=('MIT')
makedepends=('python2-setuptools' 'python-setuptools')
source=("https://pypi.python.org/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$pkgver.tar.gz")
md5sums=('33ee89d21f71d2c7a049e1327fe39390')


prepare() {
    cp -R $_pipname-$pkgver python2-$_pipname-$pkgver
}

package_python2-simplekv() {
depends=('python2')

    cd python2-$_pipname-$pkgver
    python2 setup.py install --root="$pkgdir/" --optimize=1

    install -d ${pkgdir}/usr/share/licenses/$pkgname
    install -m 644 "$srcdir/${_pipname}-${pkgver}/LICENSE" "$pkgdir/usr/share/licenses/$pkgname"
}

package_python-simplekv() {
depends=('python')

    cd $_pipname-$pkgver 
    python setup.py install --root="$pkgdir/" --optimize=1

    install -d ${pkgdir}/usr/share/licenses/$pkgname
    install -m 644 "$srcdir/${_pipname}-${pkgver}/LICENSE" "$pkgdir/usr/share/licenses/$pkgname"
}