diff options
author | Caleb Maclennan | 2019-12-02 14:17:24 +0300 |
---|---|---|
committer | Caleb Maclennan | 2019-12-02 14:18:59 +0300 |
commit | f8c602608cfa71931c3edff53c054280a98f6670 (patch) | |
tree | 4fae2945420395d751395d2ed2524736f83096fd /PKGBUILD | |
parent | 48debd7cbfd28a729b81556df62dd3a37c43ee3a (diff) | |
download | aur-f8c602608cfa71931c3edff53c054280a98f6670.tar.gz |
Switch to setuptools based build and dowload from Github
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 19 |
1 files changed, 9 insertions, 10 deletions
@@ -2,28 +2,27 @@ # PKGBUILD generated by pipman # Python package author: Sergio Correia <sergio.correia@gmail.com> -_pipname=panflute -pkgname=python-$_pipname +_name=panflute +pkgname=python-$_name pkgver=1.12.2 pkgrel=1 pkgdesc="Pythonic Pandoc filters" arch=(any) -url="https://github.com/sergiocorreia/$_pipname" +url="https://github.com/sergiocorreia/$_name" license=(BSD3) makedepends=("python" "python-pip") depends=("python-click" "python-yaml" "python-shutilwhich") +source=("https://github.com/sergiocorreia/$_name/archive/v$pkgver.tar.gz") +sha256sums=('950e25b9273d743baa4b49f4cfd1b24e3e32f721a3f44dc5bce1c7c2c74581b0') build() { - pip install --no-deps --target="$_pipname" "$_pipname==$pkgver" + cd "$srcdir/$_name-$pkgver" + python setup.py build } package() { - sitepackages=$(python -c "import site; print(site.getsitepackages()[0])") - mkdir -p "$pkgdir/$sitepackages" - cp -r "$srcdir/$_pipname"/* "$pkgdir/$sitepackages" - install -d "$pkgdir/usr/bin" - ln -s {$sitepackages,$pkgdir/usr}/bin/panfl - ln -s {$sitepackages,$pkgdir/usr}/bin/panflute + cd "$srcdir/$_name-$pkgver" + python setup.py install --root="$pkgdir" --optimize=1 } |