diff options
author | Caleb Maclennan | 2019-12-02 14:21:37 +0300 |
---|---|---|
committer | Caleb Maclennan | 2019-12-02 14:21:37 +0300 |
commit | 2ee59f8547e524057050a63a34f6d9b5e51bea6d (patch) | |
tree | eb9c8eec88c3948ee4d4f8c06818bf15acab49a3 | |
parent | eefd7b1725b909d38228b3fe7b062bf733e65f2b (diff) | |
download | aur-2ee59f8547e524057050a63a34f6d9b5e51bea6d.tar.gz |
Switch to setuptools based build and dowload from Github
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 21 |
2 files changed, 13 insertions, 12 deletions
@@ -1,7 +1,7 @@ pkgbase = python-pantable pkgdesc = CSV Tables in Markdown: Pandoc Filter for CSV Tables pkgver = 0.12.2 - pkgrel = 2 + pkgrel = 3 url = https://github.com/ickc/pantable arch = any license = GPLv3 @@ -13,6 +13,8 @@ pkgbase = python-pantable depends = python-panflute depends = python-yaml depends = python-shutilwhich + source = https://github.com/ickc/pantable/archive/v0.12.2.tar.gz + sha256sums = c71e9a8cba7dac8420e4cc089ad518a62a0f571bf85f406f87b553cf411d6ddd pkgname = python-pantable @@ -2,13 +2,13 @@ # PKGBUILD generated by pipman # Python package author: Kolen Cheung <christian.kolen@gmail.com> -_pipname=pantable -pkgname=python-$_pipname +_name=pantable +pkgname=python-$_name pkgver=0.12.2 -pkgrel=2 +pkgrel=3 pkgdesc="CSV Tables in Markdown: Pandoc Filter for CSV Tables" arch=(any) -url="https://github.com/ickc/$_pipname" +url="https://github.com/ickc/$_name" license=(GPLv3) makedepends=("python" "python-pip") depends=("python-click" @@ -17,16 +17,15 @@ depends=("python-click" "python-panflute" "python-yaml" "python-shutilwhich") +source=("https://github.com/ickc/$_name/archive/v$pkgver.tar.gz") +sha256sums=('c71e9a8cba7dac8420e4cc089ad518a62a0f571bf85f406f87b553cf411d6ddd') 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 {$(python -c "import site; print(site.getsitepackages()[0]+'/bin')"),$pkgdir/usr/bin}/pantable - ln -s {$(python -c "import site; print(site.getsitepackages()[0]+'/bin')"),$pkgdir/usr/bin}/pantable2csv + cd "$srcdir/$_name-$pkgver" + python setup.py install --root="$pkgdir" --optimize=1 } |