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

David Runge dvzrv at archlinux.org
Sun Sep 2 22:19:30 UTC 2018


    Date: Sunday, September 2, 2018 @ 22:19:29
  Author: dvzrv
Revision: 376133

archrelease: copy trunk to community-testing-any

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

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

Copied: python-pyrss2gen/repos/community-testing-any/PKGBUILD (from rev 376132, python-pyrss2gen/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2018-09-02 22:19:29 UTC (rev 376133)
@@ -0,0 +1,35 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+_name=PyRSS2Gen
+pkgname=python-pyrss2gen
+pkgver=1.1
+pkgrel=7
+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')
+checkdepends=('python-pytest')
+# 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')
+
+prepare() {
+  mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+package() {
+  cd "$pkgname-$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