[arch-commits] Commit in python-license-expression/repos/community-any (2 files)
George Rawlinson
grawlinson at gemini.archlinux.org
Sat May 7 07:00:53 UTC 2022
Date: Saturday, May 7, 2022 @ 07:00:53
Author: grawlinson
Revision: 1196126
archrelease: copy trunk to community-any
Added:
python-license-expression/repos/community-any/PKGBUILD
(from rev 1196125, python-license-expression/trunk/PKGBUILD)
Deleted:
python-license-expression/repos/community-any/PKGBUILD
----------+
PKGBUILD | 109 +++++++++++++++++++++++++++++++++++++------------------------
1 file changed, 67 insertions(+), 42 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-05-07 07:00:03 UTC (rev 1196125)
+++ PKGBUILD 2022-05-07 07:00:53 UTC (rev 1196126)
@@ -1,42 +0,0 @@
-# Maintainer: George Rawlinson <grawlinson at archlinux.org>
-# Contributor: Max Mehl <aur at mehl dot mx>
-# SPDX-FileCopyrightText: 2019 Max Mehl
-# SPDX-License-Identifier: CC0-1.0
-
-pkgname='python-license-expression'
-_name=${pkgname#python-}
-pkgver=21.6.14
-pkgrel=4
-pkgdesc='Utility to parse, normalize and compare license expressions'
-arch=('any')
-url='https://github.com/nexB/license-expression'
-license=('Apache')
-depends=('python' 'python-boolean.py')
-makedepends=('python-setuptools' 'python-wheel' 'python-pip')
-checkdepends=('python-pytest' 'python-pytest-xdist')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
-sha512sums=('12c4333a53f30c73f123434c9e50ee50163a3bad5831e756cc1350c14daa062b939e8382f4bcf2fef11020f8bec5185f71302f3c68ae88cd59b8da9a5f2964f4')
-
-prepare() {
- cd "$_name-$pkgver"
-
- # Fix file to comply with PEP-440
- sed -i "s/^fallback_version =.*/fallback_version = \"$pkgver\"/" pyproject.toml
-}
-
-build() {
- cd "$_name-$pkgver"
- python setup.py build
-}
-
-check() {
- cd "$_name-$pkgver"
- pytest
-}
-
-package() {
- cd "$_name-$pkgver"
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-}
-
-# vim: ts=2 sw=2 et:
Copied: python-license-expression/repos/community-any/PKGBUILD (from rev 1196125, python-license-expression/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-05-07 07:00:53 UTC (rev 1196126)
@@ -0,0 +1,67 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Contributor: Max Mehl <aur at mehl dot mx>
+# SPDX-FileCopyrightText: 2019 Max Mehl
+# SPDX-License-Identifier: CC0-1.0
+
+pkgname=python-license-expression
+pkgver=21.6.14
+pkgrel=5
+pkgdesc='Utility to parse, normalize and compare license expressions'
+arch=('any')
+url='https://github.com/nexB/license-expression'
+license=('Apache')
+depends=(
+ 'python'
+ 'python-boolean.py'
+)
+makedepends=(
+ 'git'
+ 'python-setuptools'
+ 'python-wheel'
+ 'python-pip'
+)
+checkdepends=(
+ 'python-pytest'
+ 'python-pytest-xdist'
+)
+_commit='475a246eb3d5281cc63b90345fcba080bfefb21b'
+source=("$pkgname::git+$url#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+
+ git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+ cd "$pkgname"
+
+ # Fix file to comply with PEP-440
+ sed \
+ -i pyproject.toml \
+ -e "s/^fallback_version =.*/fallback_version = \"$pkgver\"/"
+
+ # remove version constraint for python-boolean.py
+ sed \
+ -i setup.cfg \
+ -e 's/\(boolean.py\).*$/\1/'
+}
+
+build() {
+ cd "$pkgname"
+
+ python setup.py build
+}
+
+check() {
+ cd "$pkgname"
+
+ pytest
+}
+
+package() {
+ cd "$pkgname"
+
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}
More information about the arch-commits
mailing list