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

Evangelos Foutras foutrelis at archlinux.org
Sat Jun 30 15:54:46 UTC 2018


    Date: Saturday, June 30, 2018 @ 15:54:45
  Author: foutrelis
Revision: 348359

archrelease: copy trunk to community-staging-any

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

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

Copied: python-polib/repos/community-staging-any/PKGBUILD (from rev 348358, python-polib/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-06-30 15:54:45 UTC (rev 348359)
@@ -0,0 +1,34 @@
+# $Id$
+# Contributor: Esteban V. Carnevale <alfplayer at mailoo.com>
+
+pkgbase=python-polib
+pkgname=(python-polib python2-polib)
+_pkgname=polib
+pkgver=1.1.0
+pkgrel=2
+pkgdesc='A library to manipulate gettext files'
+url='https://pypi.python.org/pypi/polib'
+arch=('any')
+license=('MIT')
+depends=('python' 'python2')
+source=("https://pypi.io/packages/source/p/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
+sha256sums=('fad87d13696127ffb27ea0882d6182f1a9cf8a5e2b37a587751166c51e5a332a')
+
+build() {
+  cd "${srcdir}/${_pkgname}-${pkgver}"
+  python setup.py build
+}
+
+package_python-polib() {
+  depends=('python')
+  cd "${srcdir}/${_pkgname}-${pkgver}"
+  python setup.py install --root="${pkgdir}" --optimize=1
+  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-polib() {
+  depends=('python2')
+  cd "${srcdir}/${_pkgname}-${pkgver}"
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list