summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Monfils2020-10-16 09:19:43 +0200
committerNathan Monfils2020-10-16 09:19:43 +0200
commit04ed5d335ffbfb01c92f93de78b89651ef393d32 (patch)
treea66a8dc987dc29a6952b04f3e1bb594e9b0be1af
downloadaur-04ed5d335ffbfb01c92f93de78b89651ef393d32.tar.gz
Create repo
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD34
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..856b25e765f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = python-jsonschema-typed-git
+ pkgdesc = Use JSON Schema for type checking in Python
+ pkgver = r42.54d2f8c
+ pkgrel = 1
+ url = https://github.com/inspera/jsonschema-typed
+ arch = any
+ license = MIT
+ makedepends = python
+ makedepends = git
+ makedepends = python-setuptools
+ depends = python
+ depends = python-jsonschema
+ depends = mypy
+ provides = python-jsonschema-typed-git
+ conflicts = python-jsonschema-typed
+ source = python-jsonschema-typed-git::git+https://github.com/inspera/jsonschema-typed
+ md5sums = SKIP
+
+pkgname = python-jsonschema-typed-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0f2a6e952cd
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Nathan Monfils <nathanmonfils@gmail.com>
+
+pkgname=python-jsonschema-typed-git
+pkgver=r42.54d2f8c
+pkgrel=1
+pkgdesc="Use JSON Schema for type checking in Python"
+arch=(any)
+url="https://github.com/inspera/jsonschema-typed"
+license=('MIT')
+depends=(python python-jsonschema mypy)
+makedepends=(python git python-setuptools)
+provides=("${pkgname}")
+conflicts=("python-jsonschema-typed")
+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"
+
+ 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"
+}
+
+pkgver() {
+ cd "$pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}