From 31d147b20c67d95a9e306d0749200bf964ac42af Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 29 Oct 2021 01:30:24 +0300 Subject: Use actual files instead of submodules --- python-jstyleson | 1 - python-jstyleson/.SRCINFO | 13 +++++++++++++ python-jstyleson/PKGBUILD | 23 +++++++++++++++++++++++ 3 files changed, 36 insertions(+), 1 deletion(-) delete mode 160000 python-jstyleson create mode 100644 python-jstyleson/.SRCINFO create mode 100644 python-jstyleson/PKGBUILD (limited to 'python-jstyleson') diff --git a/python-jstyleson b/python-jstyleson deleted file mode 160000 index a7b184f..0000000 --- a/python-jstyleson +++ /dev/null @@ -1 +0,0 @@ -Subproject commit a7b184f2e7d392c19cd70287496053eaa419c954 diff --git a/python-jstyleson/.SRCINFO b/python-jstyleson/.SRCINFO new file mode 100644 index 0000000..8111831 --- /dev/null +++ b/python-jstyleson/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = python-jstyleson + pkgdesc = Library to parse JSON with js-style comments. + pkgver = 0.0.2 + pkgrel = 1 + url = https://pypi.org/project/jstyleson/ + arch = any + license = MIT + makedepends = python-setuptools + depends = python + source = https://files.pythonhosted.org/packages/source/j/jstyleson/jstyleson-0.0.2.tar.gz + sha256sums = 680003f3b15a2959e4e6a351f3b858e3c07dd3e073a0d54954e34d8ea5e1308e + +pkgname = python-jstyleson diff --git a/python-jstyleson/PKGBUILD b/python-jstyleson/PKGBUILD new file mode 100644 index 0000000..1281310 --- /dev/null +++ b/python-jstyleson/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: Yigit Sever +pkgname=python-jstyleson +_name=${pkgname#python-} +pkgver=0.0.2 +pkgrel=1 +pkgdesc="Library to parse JSON with js-style comments." +arch=('any') +url="https://pypi.org/project/jstyleson/" +license=('MIT') +depends=('python') +makedepends=('python-setuptools') +source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") +sha256sums=('680003f3b15a2959e4e6a351f3b858e3c07dd3e073a0d54954e34d8ea5e1308e') + +build() { + cd "${_name}-${pkgver}" + python setup.py build +} + +package() { + cd "${_name}-${pkgver}" + python setup.py install --root="$pkgdir" --optimize=1 +} -- cgit v1.2.3-70-g09d2