[arch-commits] Commit in python-pycountry/repos/community-any (PKGBUILD PKGBUILD)
Morten Linderud
foxboron at archlinux.org
Tue Jun 5 10:46:05 UTC 2018
Date: Tuesday, June 5, 2018 @ 10:46:05
Author: foxboron
Revision: 340505
archrelease: copy trunk to community-any
Added:
python-pycountry/repos/community-any/PKGBUILD
(from rev 340504, python-pycountry/trunk/PKGBUILD)
Deleted:
python-pycountry/repos/community-any/PKGBUILD
----------+
PKGBUILD | 82 +++++++++++++++++++++++++++++++++++++++----------------------
1 file changed, 53 insertions(+), 29 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2018-06-05 10:45:52 UTC (rev 340504)
+++ PKGBUILD 2018-06-05 10:46:05 UTC (rev 340505)
@@ -1,29 +0,0 @@
-# $Id$
-# Maintainer: Giovanni Scafora <giovanni at archlinux.org>
-# Contributor: Pawel "kTT" Salata <rockplayer.pl at gmail.com>
-
-pkgbase=python-pycountry
-pkgname=(python-pycountry python2-pycountry)
-pkgver=18.5.26
-pkgrel=1
-pkgdesc="ISO country, subdivision, language, currency and script definitions and their translations"
-arch=('any')
-url="http://pypi.python.org/pypi/pycountry"
-license=('LGPL2.1')
-makedepends=('python2-setuptools' 'python-setuptools')
-source=("https://pypi.io/packages/source/p/pycountry/pycountry-${pkgver}.tar.gz")
-sha512sums=('9760175a7926347920542a2fd2420cc3d4f36ac11df5aa6f7aaabbd9b46dd9cb61801933133a589ed35fd2e279db2a70e98340d8cf8856987dc88d6fdb715437')
-
-package_python2-pycountry() {
- depends=(python2-lxml)
- cd "${srcdir}/pycountry-${pkgver}"
-
- python2 setup.py install --root="$pkgdir/" --optimize=1
-}
-
-package_python-pycountry() {
- depends=(python-lxml)
- cd "${srcdir}/pycountry-${pkgver}"
-
- python setup.py install --root="$pkgdir/" --optimize=1
-}
Copied: python-pycountry/repos/community-any/PKGBUILD (from rev 340504, python-pycountry/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2018-06-05 10:46:05 UTC (rev 340505)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Contibutor: Giovanni Scafora <giovanni at archlinux.org>
+# Contributor: Pawel "kTT" Salata <rockplayer.pl at gmail.com>
+
+pkgbase=python-pycountry
+pkgname=(python-pycountry python2-pycountry)
+pkgver=18.5.26
+pkgrel=2
+pkgdesc="ISO country, subdivision, language, currency and script definitions and their translations"
+arch=('any')
+url="http://pypi.python.org/pypi/pycountry"
+license=('LGPL2.1')
+makedepends=('python2' 'python2-setuptools'
+ 'python' 'python-setuptools')
+checkdepends=('python2-pytest' 'python2-pytest-runner'
+ 'python-pytest' 'python-pytest-runner')
+source=("https://pypi.io/packages/source/p/pycountry/pycountry-${pkgver}.tar.gz")
+sha512sums=('9760175a7926347920542a2fd2420cc3d4f36ac11df5aa6f7aaabbd9b46dd9cb61801933133a589ed35fd2e279db2a70e98340d8cf8856987dc88d6fdb715437')
+
+prepare(){
+ cp -r pycountry-${pkgver}{,-py2}
+}
+
+build(){
+ cd "${srcdir}/pycountry-${pkgver}"
+ python setup.py build
+
+ cd "${srcdir}/pycountry-${pkgver}-py2"
+ python2 setup.py build
+}
+
+check(){
+ cd "${srcdir}/pycountry-${pkgver}"
+ python setup.py pytest
+
+ cd "${srcdir}/pycountry-${pkgver}-py2"
+ python2 setup.py pytest
+}
+
+
+package_python2-pycountry() {
+ depends=(python python2-lxml)
+ cd "${srcdir}/pycountry-${pkgver}"
+ python2 setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+}
+
+package_python-pycountry() {
+ depends=(python python-lxml)
+ cd "${srcdir}/pycountry-${pkgver}"
+ python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+}
+
More information about the arch-commits
mailing list