summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 85d616dec6e13180a9e71744bc3546cdb1e91223 (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
# Maintainer: Fran├žois Magimel <magimel.francois at gmail dot com>
# Contributor: Aaron DeVore <aaron.devore@gmail.com>
# Contributor: rayte <rabyte__gmail>
# Contributor: aldeano <aldea.diaguita at gmail.com>

pkgname=(python-cerealizer python2-cerealizer)
pkgver=0.8.3
pkgrel=1
pkgdesc="A Python module for saving objects in a file"
arch=('any')
url="http://www.lesfleursdunormal.fr/static/informatique/cerealizer/index_en.html"
makedepends=("python-setuptools" "python2-setuptools")
license=('PSF')
source=(https://pypi.python.org/packages/source/C/Cerealizer/Cerealizer-${pkgver}.tar.gz)
md5sums=('a7cf54e5db5cb6485627d116ef90f89f')

prepare() {
    cp -a Cerealizer-$pkgver{,-py2}
}

build() {
    cd "$srcdir/Cerealizer-$pkgver"
    python setup.py build

    cd "$srcdir/Cerealizer-$pkgver-py2"
    python2 setup.py build
}

package_python-cerealizer() {
  depends=('python')
  cd "$srcdir/Cerealizer-$pkgver"
  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}

package_python2-cerealizer() {
  depends=('python2')
  cd "$srcdir/Cerealizer-$pkgver-py2"
  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
}