summaryrefslogtreecommitdiff
path: root/community/python-apsw
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-24 01:49:18 -0700
committerroot <root@rshg054.dnsready.net>2013-08-24 01:49:18 -0700
commit49e0f6ae5dad013852999f497117d6798b2fb085 (patch)
tree0df325f48646f4489efda55fa9c9e9bebbe24363 /community/python-apsw
parentdbffe56f58d40a9a456baeba5d488c9f968a352a (diff)
Sat Aug 24 01:47:21 PDT 2013
Diffstat (limited to 'community/python-apsw')
-rw-r--r--community/python-apsw/LICENSE15
-rw-r--r--community/python-apsw/PKGBUILD41
2 files changed, 56 insertions, 0 deletions
diff --git a/community/python-apsw/LICENSE b/community/python-apsw/LICENSE
new file mode 100644
index 000000000..a0470b2a0
--- /dev/null
+++ b/community/python-apsw/LICENSE
@@ -0,0 +1,15 @@
+Copyright (C) 2004-2009 Roger Binns
+
+This software is provided ‘as-is’, without any express or implied warranty. In no event will the authors be held liable
+for any damages arising from the use of this software.
+
+Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it
+and redistribute it freely, subject to the following restrictions:
+
+- The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If
+ you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not
+ required.
+
+- Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
+
+- This notice may not be removed or altered from any source distribution.
diff --git a/community/python-apsw/PKGBUILD b/community/python-apsw/PKGBUILD
new file mode 100644
index 000000000..99b0954f6
--- /dev/null
+++ b/community/python-apsw/PKGBUILD
@@ -0,0 +1,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
+}
+