summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Brinister2018-07-29 23:03:40 -0400
committerAlex Brinister2018-07-29 23:03:40 -0400
commit3c1271ed77307f4f975d40db8347f2ba6c171142 (patch)
tree2d9c674d16b0d32613ff55197d42e8216daef60c
parent51f493c78cd50227fd5cd20066e07f64fa76ea74 (diff)
downloadaur-3c1271ed77307f4f975d40db8347f2ba6c171142.tar.gz
Added optimized bytecode and skip build to package()
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD6
2 files changed, 4 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 82045ec52b4..329178018ad 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,10 @@
pkgbase = python-cheetah3
pkgdesc = A Python 3-powered template engine and code generator
pkgver = 3.1.0
- pkgrel = 2
+ pkgrel = 3
url = http://www.cheetahtemplate.org
arch = x86_64
license = custom
- makedepends = python-setuptools
makedepends = python-pygments
makedepends = python-markdown
depends = python
diff --git a/PKGBUILD b/PKGBUILD
index 932242032e9..28879e71c42 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,13 +4,13 @@
pkgname=python-cheetah3
_name=Cheetah3
pkgver=3.1.0
-pkgrel=2
+pkgrel=3
pkgdesc="A Python 3-powered template engine and code generator"
arch=(x86_64)
url="http://www.cheetahtemplate.org"
license=(custom)
depends=(python)
-makedepends=('python-setuptools' 'python-pygments' 'python-markdown')
+makedepends=('python-pygments' 'python-markdown')
provides=('cheetah3' 'python-cheetah3')
conflicts=('cheetah3' 'python-cheetah3')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
@@ -24,7 +24,7 @@ build() {
package() {
msg "Install..."
cd "${srcdir}/${_name}-${pkgver}"
- python setup.py install --root="${pkgdir}" || return 1
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
msg2 "Install copyright resources in /usr/share/licenses/${pkgname}..."
install -Dm644 "${srcdir}/${_name}-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"