[arch-commits] Commit in (4 files)
George Rawlinson
grawlinson at gemini.archlinux.org
Wed Apr 20 08:00:34 UTC 2022
Date: Wednesday, April 20, 2022 @ 08:00:33
Author: grawlinson
Revision: 1187118
addpkg: python-pgspecial 1.13.1-2
Added:
python-pgspecial/
python-pgspecial/repos/
python-pgspecial/trunk/
python-pgspecial/trunk/PKGBUILD
----------+
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
Added: python-pgspecial/trunk/PKGBUILD
===================================================================
--- python-pgspecial/trunk/PKGBUILD (rev 0)
+++ python-pgspecial/trunk/PKGBUILD 2022-04-20 08:00:33 UTC (rev 1187118)
@@ -0,0 +1,51 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Contributor: fzerorubigd <fzero at rubi.gd>
+
+pkgname=python-pgspecial
+pkgver=1.13.1
+pkgrel=2
+pkgdesc='Meta-commands handler for PostgreSQL'
+arch=('any')
+url='https://github.com/dbcli/pgspecial'
+license=('BSD')
+depends=(
+ 'python'
+ 'python-click'
+ 'python-sqlparse'
+ 'python-psycopg2'
+)
+makedepends=('git' 'python-setuptools')
+checkdepends=('python-pytest' 'python-configobj')
+_commit='7531dc0d4e5561fc3693320a775b26b188b6f6d5'
+source=("$pkgname::git+$url.git#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+
+ git describe --tags | sed 's/^v//'
+}
+
+build() {
+ cd "$pkgname"
+
+ python setup.py build
+}
+
+check() {
+ cd "$pkgname"
+
+ PYTHONPATH="$(pwd):$PYTHONPATH" pytest --ignore tests/test_specials.py
+}
+
+package() {
+ cd "$pkgname"
+
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+ # documentation
+ install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.rst
+
+ # license
+ install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" License.txt
+}
More information about the arch-commits
mailing list