[arch-commits] Commit in python-pyrss2gen/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Nov 10 04:08:35 UTC 2020


    Date: Tuesday, November 10, 2020 @ 04:08:35
  Author: felixonmars
Revision: 748514

archrelease: copy trunk to community-staging-any

Added:
  python-pyrss2gen/repos/community-staging-any/
  python-pyrss2gen/repos/community-staging-any/PKGBUILD
    (from rev 748512, python-pyrss2gen/trunk/PKGBUILD)

----------+
 PKGBUILD |   30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

Copied: python-pyrss2gen/repos/community-staging-any/PKGBUILD (from rev 748512, python-pyrss2gen/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-10 04:08:35 UTC (rev 748514)
@@ -0,0 +1,30 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+_name=PyRSS2Gen
+pkgname=python-pyrss2gen
+pkgver=1.1
+pkgrel=11
+pkgdesc="Generate RSS2 using a Python data structure"
+arch=('any')
+url="http://www.dalkescientific.com/Python/PyRSS2Gen.html"
+license=('BSD')
+depends=('python')
+makedepends=('python-setuptools')
+# pypi source doesn't contain LICENSE
+#source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+source=("http://www.dalkescientific.com/Python/${_name}-${pkgver}.tar.gz")
+sha512sums=('2240686914c87984626eb739676927fcd53488158bdebf589e07e8a778e6d24305964e032581c61836f0fabc1264e42d05c88eac8f4c5f6536c31c775434ce02')
+
+build() {
+  cd "${_name}-$pkgver"
+  python setup.py build
+}
+
+package() {
+  cd "${_name}-$pkgver"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -vDm 644 README -t "${pkgdir}/usr/share/doc/${pkgname}"
+}



More information about the arch-commits mailing list