summaryrefslogtreecommitdiffstats
path: root/abs/core/python_modules/python-pysqlite/PKGBUILD
blob: 03022331936be1c09cd02a27f8adf6732134b387 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# $Id: PKGBUILD 155872 2012-04-08 07:25:46Z remy $
# Maintainer: Angel Velasquez <angvp@archlinux.org> 
# Contributor: Aaron Griffin <aaron@archlinux.org>
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
pkgname=python-pysqlite
pkgver=2.6.3
pkgrel=2
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/"
depends=('python2' 'sqlite')
replaces=('pysqlite2')
source=(http://pysqlite.googlecode.com/files/pysqlite-${pkgver}.tar.gz \
        setup.cfg)
md5sums=('711afa1062a1d2c4a67acdf02a33d86e'
         '86dd356c65afd14a22f2f8f64a26441e')

check() {
    cd ${pkgdir}/usr/lib/python2.7/site-packages
    python2 -c "from pysqlite2 import test; test.test()"
}

build() {
	cd ${srcdir}/pysqlite-${pkgver}
	cp ${srcdir}/setup.cfg .
	python2 setup.py install --root=${pkgdir}
}

package() {
	cd ${srcdir}/pysqlite-${pkgver}
	install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
	rm -r ${pkgdir}/usr/pysqlite2-doc
}