summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorspecter1192020-01-24 18:30:12 +0800
committerspecter1192020-01-24 18:30:12 +0800
commit75af9cb46472634acd7186abcdc287892cd496ab (patch)
treede92ea5cecf2c65492f5b33aab812b1c4001c867
parentc5d12db4b99537bab97fcb9bf5cdd9fe000d12d7 (diff)
downloadaur-75af9cb46472634acd7186abcdc287892cd496ab.tar.gz
update build and package
-rw-r--r--.SRCINFO2
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD14
3 files changed, 12 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 56baed899c7..dd4fa8d6e1a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = python-asciimatics
pkgdesc = A cross platform package to do curses-like operations, plus higher level APIs and widgets to create text UIs and ASCII art animations.
pkgver = 1.11.0
- pkgrel = 1
+ pkgrel = 2
url = https://pypi.org/project/asciimatics
arch = any
license = Apache2
diff --git a/.gitignore b/.gitignore
index 661a7d79edc..bec709725a1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,4 @@
-asciimatics-*.tar.gz \ No newline at end of file
+/src/
+/pkg/
+/asciimatics-*.tar.gz
+*.pkg.tar.* \ No newline at end of file
diff --git a/PKGBUILD b/PKGBUILD
index 50e70246485..a240c6e6ba4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,25 +1,25 @@
# Maintainer: Ke Liu <spcter119@gmail.com>
pkgname=python-asciimatics
+_name=${pkgname//python-}
pkgver=1.11.0
-pkgrel=1
+pkgrel=2
pkgdesc='A cross platform package to do curses-like operations, plus higher level APIs and widgets to create text UIs and ASCII art animations.'
arch=('any')
url='https://pypi.org/project/asciimatics'
license=('Apache2')
depends=('python-wcwidth' 'python-mock' 'python-pyfiglet' 'python-future' 'python-setuptools-scm' 'python-pillow')
-_pkgname=asciimatics
-source=("https://files.pythonhosted.org/packages/source/a/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
+source=("https://files.pythonhosted.org/packages/source/a/${_name}/${_name}-${pkgver}.tar.gz")
md5sums=('9abc134166e6a83671b379dc03830a3f')
build() {
- cd "${_pkgname}-${pkgver}"
+ cd "$srcdir/${_name}-$pkgver"
python setup.py clean --all
python setup.py build
}
package() {
- cd "${_pkgname}-${pkgver}"
- python setup.py install --root "$pkgdir"
- install -Dm644 "$srcdir/${_pkgname}-${pkgver}/LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
+ cd "$srcdir/${_name}-$pkgver"
+ python setup.py install --root "$pkgdir" --skip-build --optimize=1
+ install -Dm644 "$srcdir/${_name}-${pkgver}/LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}