summaryrefslogtreecommitdiff
path: root/community/python-apsw/PKGBUILD
blob: 99b0954f6d0ed97f4b294c0485d846753f2fbeed (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
35
36
37
38
39
40
41
# Maintainer: Brendan MacDonell <macdonellba at gmail dot com>
# Former Maintainer: Linmiao Xu <linmiao.xu@gmail.com>
# Contributor: Juan Miguel Cejuela <juanmi@jmcejuela.net>

pkgbase=python-apsw
pkgname=('python-apsw' 'python2-apsw')
pkgver=3.7.17_r1
pkgrel=1
arch=('i686' 'x86_64')
url="http://code.google.com/p/apsw/"
license=('MIT')
makedepends=('python' 'python2')
source=("http://apsw.googlecode.com/files/apsw-${pkgver//_/-}.zip" 'LICENSE')

md5sums=('5393765e7ef55def11dae08149133136'
         'efc704d50cb39441d00f9dc76cbe6665')

build() {
  cd $srcdir
  cp -rf apsw-${pkgver//_/-} apsw2
}

package_python-apsw() {
depends=('python' 'sqlite3>=3.7.5')
pkgdesc="Python wrapper for SQLite"
  cd $srcdir/apsw-${pkgver//_/-}
  python setup.py install --root=$pkgdir/

  install -D -m644 $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}


package_python2-apsw() {
depends=('python2' 'sqlite3>=3.7.5')
pkgdesc="Python2 wrapper for SQLite"
  cd $srcdir/apsw2
  python2 setup.py install --root=$pkgdir/

  install -D -m644 $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}