[arch-commits] Commit in python2-enum34/trunk (PKGBUILD)

Maxime Gauduin alucryd at archlinux.org
Mon Feb 24 11:01:39 UTC 2020


    Date: Monday, February 24, 2020 @ 11:01:38
  Author: alucryd
Revision: 580341

upgpkg: python2-enum34 1.1.9-1

Modified:
  python2-enum34/trunk/PKGBUILD

----------+
 PKGBUILD |   41 +++++++++++++++++++++++++++--------------
 1 file changed, 27 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-02-24 10:55:39 UTC (rev 580340)
+++ PKGBUILD	2020-02-24 11:01:38 UTC (rev 580341)
@@ -2,24 +2,37 @@
 # Contributor: Schala <schalaalexiazeal at gmail.com>
 
 pkgname=python2-enum34
-pkgver=1.1.6
-pkgrel=2
+pkgver=1.1.9
+pkgrel=1
 pkgdesc='Python 3.4 Enum backported'
-arch=('any')
-url='https://pypi.python.org/pypi/enum34'
-license=('BSD')
-depends=('python2')
-makedepends=('python2-setuptools')
-source=("https://pypi.python.org/packages/bf/3e/31d502c25302814a7c2f1d3959d2a3b3f78e509002ba91aea64993936876/enum34-1.1.6.tar.gz")
-sha256sums=('8ad8c4783bf61ded74527bffb48ed9b54166685e4230386a9ed9b1279e2df5b1')
+arch=(any)
+url=https://bitbucket.org/stoneleaf/enum34
+license=(BSD)
+depends=(python2)
+makedepends=(
+  mercurial
+  python2-setuptools
+)
+source=(hg+https://bitbucket.org/stoneleaf/enum34#tag=7e3b107656eb)
+sha256sums=(SKIP)
 
-package() {
-  cd enum34-${pkgver}
+pkgver() {
+  cd enum34
 
-  python2 setup.py install --root="${pkgdir}" --optimize='1'
+  hg id -t
+}
 
-  install -dm 755 "${pkgdir}"/usr/share/licenses/python2-enum34
-  install -m 644 enum/LICENSE "${pkgdir}"/usr/share/licenses/python2-enum34/
+build() {
+  cd enum34
+
+  python2 setup.py build
 }
 
+package() {
+  cd enum34
+
+  python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+  install -Dm 644 enum/LICENSE -t "${pkgdir}"/usr/share/licenses/python2-enum34/
+}
+
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list