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

Evangelos Foutras foutrelis at archlinux.org
Sat Dec 24 11:02:00 UTC 2016


    Date: Saturday, December 24, 2016 @ 11:01:59
  Author: foutrelis
Revision: 201373

archrelease: copy trunk to community-staging-any

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

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

Copied: python-polib/repos/community-staging-any/PKGBUILD (from rev 201372, python-polib/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-24 11:01:59 UTC (rev 201373)
@@ -0,0 +1,25 @@
+# $Id$
+# Contributor: Esteban V. Carnevale <alfplayer at mailoo.com>
+
+pkgname=python-polib
+_pkgname=polib
+pkgver=1.0.8
+pkgrel=2
+pkgdesc='A library to manipulate gettext files (Python3)'
+url='https://pypi.python.org/pypi/polib'
+arch=('any')
+license=('MIT')
+depends=('python')
+source=("https://pypi.io/packages/source/p/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
+sha256sums=('5affe3d915eb5b4773f4ce164817e383eea0306115cdaf9b64008b3aea8202df')
+
+build() {
+  cd "${srcdir}/${_pkgname}-${pkgver}"
+  python setup.py build
+}
+
+package() {
+  cd "${srcdir}/${_pkgname}-${pkgver}"
+  python setup.py install --root="${pkgdir}" --optimize=1
+  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list