[arch-commits] Commit in python-genshi/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Tue Nov 10 04:02:32 UTC 2020
Date: Tuesday, November 10, 2020 @ 04:02:32
Author: foutrelis
Revision: 748393
archrelease: copy trunk to community-staging-x86_64
Added:
python-genshi/repos/community-staging-x86_64/
python-genshi/repos/community-staging-x86_64/PKGBUILD
(from rev 748392, python-genshi/trunk/PKGBUILD)
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Copied: python-genshi/repos/community-staging-x86_64/PKGBUILD (from rev 748392, python-genshi/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-11-10 04:02:32 UTC (rev 748393)
@@ -0,0 +1,49 @@
+# Maintainer : Eli Schwartz <eschwartz at archlinux.org>
+
+pkgname=(python-genshi python2-genshi)
+pkgver=0.7.3
+pkgrel=2
+pkgdesc="Python toolkit for stream-based generation of output for the web."
+url="https://genshi.edgewall.org/"
+license=("BSD")
+arch=('x86_64')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://github.com/edgewall/genshi/archive/${pkgver}.tar.gz")
+sha256sums=('6b6992618069d9535ec5ee42087ab04846e6df9bba8283157843ceb516ca85b5')
+
+prepare() {
+ # uses 2to3 so need to build python2/python3 in separate dirs
+ cp -a "${srcdir}"/genshi-${pkgver}{,-py2}
+}
+
+build() {
+ cd "${srcdir}"/genshi-${pkgver}
+ python setup.py build
+
+ cd "${srcdir}"/genshi-${pkgver}-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "${srcdir}"/genshi-${pkgver}
+ python setup.py test
+
+ cd "${srcdir}"/genshi-${pkgver}-py2
+ python2 setup.py test
+}
+
+package_python-genshi() {
+ depends=('python')
+
+ cd "${srcdir}"/genshi-${pkgver}
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm644 COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/COPYING
+}
+
+package_python2-genshi() {
+ depends=('python2')
+
+ cd "${srcdir}"/genshi-${pkgver}-py2
+ python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm644 COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/COPYING
+}
More information about the arch-commits
mailing list