commit 2a68cbecd7faa56bb16c278630ec25a8338dee78 Author: Philipp A Date: Sat Aug 1 12:38:33 2020 +0200 init diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..8006bbf --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = python-genson + pkgdesc = GenSON is a powerful, user-friendly JSON Schema generator. + pkgver = 1.2.1 + pkgrel = 1 + url = https://github.com/wolverdude/genson + arch = any + license = MIT + makedepends = python-setuptools + depends = python + source = https://files.pythonhosted.org/packages/source/g/genson/genson-1.2.1.tar.gz + sha256sums = 40b8faa17f53240f224d683d7a302b5f7b35eb7ab2aba1c223a58a38b8d09c42 + +pkgname = python-genson + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c5d85b2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/src/ +/pkg/ +/*.pkg.* +/*.tar.gz diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..958e798 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,19 @@ +# Maintainer: Philipp A. + +_name=genson +pkgname=python-$_name +pkgver=1.2.1 +pkgrel=1 +pkgdesc='GenSON is a powerful, user-friendly JSON Schema generator.' +arch=(any) +url="https://github.com/wolverdude/$_name" +license=(MIT) +depends=(python) +makedepends=(python-setuptools) +source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name//-/_}/${_name//-/_}-$pkgver.tar.gz") +sha256sums=('40b8faa17f53240f224d683d7a302b5f7b35eb7ab2aba1c223a58a38b8d09c42') + +package() { + cd "$srcdir/${_name//-/_}-$pkgver" + python setup.py install --root="$pkgdir" --optimize=1 +}