summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Monfils2020-10-19 16:18:40 +0200
committerNathan Monfils2020-10-19 16:18:40 +0200
commit5fd2641c1c61b34d0735a68bf958e0b38dff5f8b (patch)
tree81b9e094fe95f1d0d2f3113d9948fbc4ff8822b6
parent04ed5d335ffbfb01c92f93de78b89651ef393d32 (diff)
downloadaur-5fd2641c1c61b34d0735a68bf958e0b38dff5f8b.tar.gz
Improve PKGBUILD based on caltlgin's suggestions
* Removed duplicate git clone (that'll teach me to copy an old PKGBUILD from dubious sourceS) * Use setup.py install instead of cp * Included little snowflake individually copyrighted MIT license
-rw-r--r--.SRCINFO2
-rw-r--r--LICENSE22
-rw-r--r--PKGBUILD14
3 files changed, 29 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 856b25e765f..7599b36827c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = python-jsonschema-typed-git
pkgdesc = Use JSON Schema for type checking in Python
pkgver = r42.54d2f8c
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/inspera/jsonschema-typed
arch = any
license = MIT
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 00000000000..e801119b42b
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,22 @@
+MIT License
+
+Copyright (c) 2019 Erick Peirson
+Copyright (c) 2019-2020 Inspera AS
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/PKGBUILD b/PKGBUILD
index 0f2a6e952cd..a060a5eb412 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=python-jsonschema-typed-git
pkgver=r42.54d2f8c
-pkgrel=1
+pkgrel=2
pkgdesc="Use JSON Schema for type checking in Python"
arch=(any)
url="https://github.com/inspera/jsonschema-typed"
@@ -15,17 +15,15 @@ source=("${pkgname}::git+https://github.com/inspera/jsonschema-typed")
md5sums=('SKIP')
build() {
- rm -rf "$srcdir/$pkgname-build"
- git clone "$srcdir/$pkgname" "$srcdir/$pkgname-build"
- cd "$srcdir/$pkgname-build"
-
+ cd "$srcdir/$pkgname"
python setup.py build
}
package() {
- rm -rf "$pkgdir/usr/lib/python3.8/site-packages"
- mkdir -p "$pkgdir/usr/lib/python3.8/site-packages"
- cp -r "$srcdir/$pkgname-build/build/lib/jsonschema_typed" "$pkgdir/usr/lib/python3.8/site-packages/jsonschema_typed"
+ cd "$srcdir/$pkgname"
+
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm644 'LICENSE' -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
pkgver() {