summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2019-02-22 21:02:26 +0100
committerAndreas Grapentin <andreas@grapentin.org>2019-02-22 21:02:44 +0100
commitf276540b34d05da586439e110aa44fea5e33b35c (patch)
tree5a8bf84c0b261586c806f3b04f169acd72a1ac02
parentc85eddece380da9b4ead29d5e746b967e66a49f0 (diff)
downloadabslibre-f276540b34d05da586439e110aa44fea5e33b35c.tar.gz
abslibre-f276540b34d05da586439e110aa44fea5e33b35c.tar.bz2
abslibre-f276540b34d05da586439e110aa44fea5e33b35c.zip
pcr/python-sql: moved from python2-sql and updated
-rw-r--r--pcr/python-sql/PKGBUILD24
-rw-r--r--pcr/python2-sql/PKGBUILD22
2 files changed, 24 insertions, 22 deletions
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 <ovruni@gnu.org.pe>
+
+_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
diff --git a/pcr/python2-sql/PKGBUILD b/pcr/python2-sql/PKGBUILD
deleted file mode 100644
index 9624a3e61..000000000
--- a/pcr/python2-sql/PKGBUILD
+++ /dev/null
@@ -1,22 +0,0 @@
-# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
-pkgname=python2-sql
-pkgver=0.7
-pkgrel=1
-pkgdesc="Library to write SQL queries"
-arch=('any')
-url="http://hg.tryton.org/python-sql"
-license=('GPL3')
-depends=('python2')
-makedepends=('python2-distribute')
-md5sums=('d00674dbcf4e971cc3a64f2373f7255f')
-source=("https://pypi.python.org/packages/source/p/python-sql/python-sql-$pkgver.tar.gz")
-
-build() {
- cd $srcdir/python-sql-$pkgver
- python2 setup.py build
-}
-
-package() {
- cd $srcdir/python-sql-$pkgver
- python2 setup.py install --root=$pkgdir
-}