diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 29 |
1 files changed, 17 insertions, 12 deletions
@@ -2,27 +2,32 @@ _gitname=terminaltables pkgname=python-terminaltables-git -pkgver='r131.ae22aaa' +pkgver=v3.1.9.r3.g8020b8c pkgrel=1 arch=('any') pkgdesc='Generate simple tables in terminals from a nested list of strings.' license=('MIT') makedepends=('git' 'python-setuptools') provides=('python-terminaltables') -url='https://github.com/Robpol86/terminaltables' -source=("git+https://github.com/Robpol86/terminaltables.git") +conflicts=('python-terminaltables') +url='https://github.com/matthewdeanmartin/terminaltables' +source=("git+https://github.com/matthewdeanmartin/terminaltables.git") sha256sums=('SKIP') -package() { +pkgver() { cd "${_gitname}" + git describe --long --abbrev=7 --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} - # We don't need anything related to git in the package - rm -rf .git* - - # Install - python setup.py install --optimize=1 --root="${pkgdir}" +build() { + cd ${_gitname} + python -m build --wheel --no-isolation +} - # Install License - # MIT/X11 license - install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +package() { + cd ${_gitname} + python -m installer --destdir="$pkgdir" --compile-bytecode=2 dist/*.whl + install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" + install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}" + install -Dm 644 example*.py -t "${pkgdir}/usr/share/doc/${pkgname}/examples" } |