summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/python2-sql/PKGBUILD26
1 files changed, 14 insertions, 12 deletions
diff --git a/pcr/python2-sql/PKGBUILD b/pcr/python2-sql/PKGBUILD
index 4ad9ed510..9624a3e61 100644
--- a/pcr/python2-sql/PKGBUILD
+++ b/pcr/python2-sql/PKGBUILD
@@ -1,20 +1,22 @@
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
pkgname=python2-sql
-pkgver=r84.7f7e8fb84cdc
+pkgver=0.7
pkgrel=1
-pkgdesc="Python 2 SQL library"
+pkgdesc="Library to write SQL queries"
arch=('any')
-url="https://code.google.com/p/python-sql/"
+url="http://hg.tryton.org/python-sql"
license=('GPL3')
depends=('python2')
-optdepends=()
-makedepends=('python2-setuptools' 'mercurial')
-md5sums=('SKIP')
-source=('hg+https://code.google.com/p/python-sql/')
-pkgver() {
- cd $srcdir/python-sql
- printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)"
+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
- python2 setup.py install --root="$pkgdir/" --optimize=1
+ cd $srcdir/python-sql-$pkgver
+ python2 setup.py install --root=$pkgdir
}