summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0d277935acd7880bffe85c7a3baef2f3d98c79b6 (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
# Maintainer: getzze <getzze at gmail dot com>
# Initially generated by pip2pkgbuild

pkgname='python-persisting-theory'
_module='persisting-theory'
pkgver='1.0'
pkgrel=1
pkgdesc="Registries that can autodiscover values accross your project apps"
url="http://code.agate.blue/agate/persisting-theory"
depends=('python')
makedepends=('python-setuptools')
license=('BSD')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${_module::1}/$_module/$_module-$pkgver.tar.gz")
sha256sums=('0f840fa22247bcaa514094da7f3b26c602359429ab12d2cd88be06b49a336290')

prepare() {
  cd "$srcdir/${_module}-${pkgver}"
  rm -rf {example,tests}
  sed -i "s#recursive-include example#recursive-exclude example *\nrecursive-exclude tests *#g" MANIFEST.in
}

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

package() {
    cd "${srcdir}/${_module}-${pkgver}"
    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}