[arch-commits] Commit in python-jsonmerge/trunk (PKGBUILD)
Filipe Laíns
ffy00 at archlinux.org
Sat Mar 28 19:45:59 UTC 2020
Date: Saturday, March 28, 2020 @ 19:45:58
Author: ffy00
Revision: 605455
upgpkg: python-jsonmerge 1.7.0-1
Added:
python-jsonmerge/trunk/PKGBUILD
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Added: PKGBUILD
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-03-28 19:45:58 UTC (rev 605455)
@@ -0,0 +1,37 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=jsonmerge
+pkgname=python-$_pkgname
+pkgver=1.7.0
+pkgrel=1
+pkgdesc='Merge a series of JSON documents'
+arch=('any')
+url='https://github.com/avian2/jsonmerge'
+license=('MIT')
+depends=('python-jsonschema')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$_pkgname-$pkgver.tar.gz")
+sha512sums=('917bf8e721ba1f7574e7519f8054a1e2a4ffd40115872e0c111ef6c3c87de9305c1dbac67d882e25f8051e819a33901c9faf84ab9d80a12fb48fc47064b78f6a')
+
+build() {
+ cd $_pkgname-$_pkgname-$pkgver
+
+ python setup.py build
+}
+
+check() {
+ cd $_pkgname-$_pkgname-$pkgver
+
+ python setup.py test
+}
+
+package() {
+ cd $_pkgname-$_pkgname-$pkgver
+
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+ install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list