[arch-commits] Commit in python-genshi/repos/community-x86_64 (PKGBUILD PKGBUILD)
Eli Schwartz
eschwartz at archlinux.org
Fri Nov 13 12:22:39 UTC 2020
Date: Friday, November 13, 2020 @ 12:22:39
Author: eschwartz
Revision: 753895
archrelease: copy trunk to community-x86_64
Added:
python-genshi/repos/community-x86_64/PKGBUILD
(from rev 753894, python-genshi/trunk/PKGBUILD)
Deleted:
python-genshi/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 81 ++++++++++++++++++++++++-------------------------------------
1 file changed, 32 insertions(+), 49 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-13 12:22:24 UTC (rev 753894)
+++ PKGBUILD 2020-11-13 12:22:39 UTC (rev 753895)
@@ -1,49 +0,0 @@
-# Maintainer : Eli Schwartz <eschwartz at archlinux.org>
-
-pkgname=(python-genshi python2-genshi)
-pkgver=0.7.3
-pkgrel=1
-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
-}
Copied: python-genshi/repos/community-x86_64/PKGBUILD (from rev 753894, python-genshi/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-11-13 12:22:39 UTC (rev 753895)
@@ -0,0 +1,32 @@
+# Maintainer : Eli Schwartz <eschwartz at archlinux.org>
+
+pkgname=python-genshi
+pkgver=0.7.4
+pkgrel=1
+pkgdesc="Python toolkit for stream-based generation of output for the web."
+arch=('x86_64')
+url="https://genshi.edgewall.org/"
+license=("BSD")
+depends=('python')
+makedepends=('python-setuptools')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/edgewall/genshi/archive/${pkgver}.tar.gz")
+sha256sums=('864d7dc47635950809639b13ad5d604984702fca335565636284cc6af478f454')
+
+build() {
+ cd "${srcdir}"/genshi-${pkgver}
+
+ python setup.py build
+}
+
+check() {
+ cd "${srcdir}"/genshi-${pkgver}
+
+ python setup.py test
+}
+
+package() {
+ cd "${srcdir}"/genshi-${pkgver}
+
+ python 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