[arch-commits] Commit in python-simplejson/trunk (PKGBUILD)
Alexander Rødseth
arodseth at gemini.archlinux.org
Sat Aug 6 20:04:54 UTC 2022
Date: Saturday, August 6, 2022 @ 20:04:53
Author: arodseth
Revision: 1260474
upgpkg: python-simplejson 3.17.6-4, ref #74802
Modified:
python-simplejson/trunk/PKGBUILD
----------+
PKGBUILD | 28 +++++++++++++---------------
1 file changed, 13 insertions(+), 15 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-08-06 19:38:25 UTC (rev 1260473)
+++ PKGBUILD 2022-08-06 20:04:53 UTC (rev 1260474)
@@ -5,32 +5,30 @@
pkgname=python-simplejson
pkgver=3.17.6
-pkgrel=3
+pkgrel=4
pkgdesc='Simple, fast, extensible JSON encoder/decoder for Python'
-license=('MIT')
-arch=('x86_64')
+license=(MIT)
+arch=(x86_64)
url='https://github.com/simplejson/simplejson'
-depends=('python')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest-runner')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/simplejson/simplejson/archive/v$pkgver.tar.gz")
-sha512sums=('48b74388cd3a5cf0acf46a9aa050d628513d842297625f791c7ae07a7c9289afcb0be8d374f77af3bebd50f4c200844bc69f5b77a67220fee357cdfc0d913726')
+depends=(python)
+makedepends=(git python-setuptools)
+checkdepends=(python-pytest-runner)
+source=("git+$url#commit=02221b19672b1b35188080435c7360cd2d6af6fb") # tag: v3.17.6
+b2sums=(SKIP)
build() {
- cd "$srcdir"/simplejson-$pkgver
+ cd simplejson
python setup.py build
}
check() {
- cd "$srcdir"/simplejson-$pkgver
+ cd simplejson
python setup.py pytest
}
package_python-simplejson() {
- cd simplejson-$pkgver
+ cd simplejson
python setup.py install --root="$pkgdir"
- install -Dm644 "$srcdir"/simplejson-$pkgver/LICENSE.txt \
- "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ install -Dm644 ../simplejson/LICENSE.txt \
+ "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
-
-# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list