[arch-commits] Commit in python-configobj/repos/community-any (PKGBUILD PKGBUILD)

Daniel M. Capella polyzen at archlinux.org
Thu Dec 24 21:25:57 UTC 2020


    Date: Thursday, December 24, 2020 @ 21:25:55
  Author: polyzen
Revision: 788892

archrelease: copy trunk to community-any

Added:
  python-configobj/repos/community-any/PKGBUILD
    (from rev 788891, python-configobj/trunk/PKGBUILD)
Deleted:
  python-configobj/repos/community-any/PKGBUILD

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-12-24 21:25:35 UTC (rev 788891)
+++ PKGBUILD	2020-12-24 21:25:55 UTC (rev 788892)
@@ -1,22 +0,0 @@
-# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
-# Contributor: Angel Velasquez <angvp at archlinux.com.ve>
-# Contributor: Stefan Husmann  <stefan-husmann at t-online.de>
-# Contributor: Manuel C.
-
-pkgname=python-configobj
-pkgver=5.0.6
-pkgrel=10
-pkgdesc='Simple config file reader and writer'
-arch=(any)
-url='https://github.com/DiffSK/configobj'
-license=(BSD)
-depends=(python-six)
-makedepends=(git python-setuptools)
-source=("git+$url#commit=3e2f4cca81b60171e6b3e23619f6f4929a13322e") # latest master, ref FS#68893
-sha256sums=(SKIP)
-
-package() {
-  cd configobj
-  python setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}

Copied: python-configobj/repos/community-any/PKGBUILD (from rev 788891, python-configobj/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-12-24 21:25:55 UTC (rev 788892)
@@ -0,0 +1,35 @@
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
+# Contributor: Angel Velasquez <angvp at archlinux.com.ve>
+# Contributor: Stefan Husmann  <stefan-husmann at t-online.de>
+# Contributor: Manuel C.
+
+pkgname=python-configobj
+pkgver=5.0.6.r110.g3e2f4cc
+pkgrel=1
+pkgdesc='Simple config file reader and writer'
+arch=(any)
+url='https://github.com/DiffSK/configobj'
+license=(BSD)
+depends=(python-six)
+makedepends=(git python-setuptools)
+source=("git+$url#commit=3e2f4cca81b60171e6b3e23619f6f4929a13322e") # latest master, ref FS#68893
+sha256sums=(SKIP)
+
+pkgver() {
+  cd configobj
+  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+  cd configobj
+  # Avoid the need for a local configobj install just for VERSION
+  local _version=$(grep -oP "__version__ = '\K[^']+" src/configobj/_version.py)
+  sed -i "/from validate/d;s/VERSION/\"$_version\"/" setup_validate.py
+}
+
+package() {
+  cd configobj
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  python setup_validate.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list