diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-03-20 04:04:36 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-03-20 04:04:36 +0000 |
commit | 7e108c74958ec076a3734822f61f145d0d69547f (patch) | |
tree | 5af7d8df8a09ee699544a24ce149876c1cdee06e /extra/python-pysqlite/PKGBUILD | |
parent | 8640bbf496b9d8a232da91e1db43466797f86861 (diff) |
Thu Mar 20 04:00:11 UTC 2014
Diffstat (limited to 'extra/python-pysqlite/PKGBUILD')
-rw-r--r-- | extra/python-pysqlite/PKGBUILD | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/extra/python-pysqlite/PKGBUILD b/extra/python-pysqlite/PKGBUILD index 0e308434b..f1591afff 100644 --- a/extra/python-pysqlite/PKGBUILD +++ b/extra/python-pysqlite/PKGBUILD @@ -1,38 +1,39 @@ -# $Id: PKGBUILD 169030 2012-10-17 10:21:00Z allan $ -# Maintainer: Angel Velasquez <angvp@archlinux.org> -# Contributor: Aaron Griffin <aaron@archlinux.org> -# Contributor: Daniel J Griffiths <ghost1227@archlinux.us> +# $Id: PKGBUILD 208210 2014-03-19 02:32:28Z eric $ +# Maintainer: pkgbase=python-pysqlite pkgname=python2-pysqlite pkgver=2.6.3 -pkgrel=3 +pkgrel=4 pkgdesc="A Python DB-API 2.0 interface for the SQLite embedded relational database engine" license=('custom') arch=('i686' 'x86_64') -url="http://code.google.com/p/pysqlite/" +url="https://pypi.python.org/pypi/pysqlite" depends=('python2' 'sqlite') conflicts=('python-pysqlite<=2.6.3-2') replaces=('python-pysqlite<=2.6.3-2') -source=(http://pysqlite.googlecode.com/files/pysqlite-${pkgver}.tar.gz \ +source=(https://pypi.python.org/packages/source/p/pysqlite/pysqlite-${pkgver}.tar.gz setup.cfg) -md5sums=('711afa1062a1d2c4a67acdf02a33d86e' +md5sums=('7ff1cedee74646b50117acff87aa1cfa' '86dd356c65afd14a22f2f8f64a26441e') -check() { - cd "${srcdir}"/pysqlite-${pkgver}/build/lib.*/ - python2 -c "from pysqlite2 import test; test.test()" +prepare() { + cp "${srcdir}/setup.cfg" pysqlite-${pkgver} } build() { - cd "${srcdir}/pysqlite-${pkgver}" - cp "${srcdir}/setup.cfg" . - python2 setup.py build + cd pysqlite-${pkgver} + python2 setup.py build +} + +check() { + cd pysqlite-${pkgver}/build/lib.*/ + python2 -c "from pysqlite2 import test; test.test()" } package_python2-pysqlite() { - cd "${srcdir}/pysqlite-${pkgver}" - python2 setup.py install --root="${pkgdir}" - install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - rm -r "${pkgdir}/usr/pysqlite2-doc" + cd pysqlite-${pkgver} + python2 setup.py install --root="${pkgdir}" + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + rm -r "${pkgdir}/usr/pysqlite2-doc" } |