From f276540b34d05da586439e110aa44fea5e33b35c Mon Sep 17 00:00:00 2001 From: Andreas Grapentin Date: Fri, 22 Feb 2019 21:02:26 +0100 Subject: pcr/python-sql: moved from python2-sql and updated --- pcr/python-sql/PKGBUILD | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pcr/python-sql/PKGBUILD (limited to 'pcr/python-sql') diff --git a/pcr/python-sql/PKGBUILD b/pcr/python-sql/PKGBUILD new file mode 100644 index 000000000..099c43823 --- /dev/null +++ b/pcr/python-sql/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Omar Vega Ramos + +_pkgname=sql +pkgname=(python{,2}-$_pkgname) +pkgver=1.0.0 +pkgrel=1 +pkgdesc="Library to write SQL queries" +arch=(any) +url="http://python-sql.tryton.org/" +license=('BSD') + +makedepends=(python{,2}-setuptools) +source=("https://files.pythonhosted.org/packages/source/p/python-sql/python-sql-$pkgver.tar.gz") +md5sums=('74ddd9c49013eb45ce12be84661b1c6e') + +_package() { + depends=($1) + cd "$srcdir"/python-$_pkgname-$pkgver + $1 setup.py install --root="$pkgdir" +} + +for _pkg in "${pkgname[@]}"; do + eval "package_$_pkg () { _package ${_pkg%%-*}; }" +done -- cgit v1.2.3