[arch-commits] Commit in python-apsw/repos (3 files)

Eli Schwartz eschwartz at archlinux.org
Wed Nov 6 03:41:37 UTC 2019


    Date: Wednesday, November 6, 2019 @ 03:41:36
  Author: eschwartz
Revision: 524258

archrelease: copy trunk to community-staging-x86_64

Added:
  python-apsw/repos/community-staging-x86_64/
  python-apsw/repos/community-staging-x86_64/LICENSE
    (from rev 524257, python-apsw/trunk/LICENSE)
  python-apsw/repos/community-staging-x86_64/PKGBUILD
    (from rev 524257, python-apsw/trunk/PKGBUILD)

----------+
 LICENSE  |   27 +++++++++++++++++++++++++++
 PKGBUILD |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 78 insertions(+)

Copied: python-apsw/repos/community-staging-x86_64/LICENSE (from rev 524257, python-apsw/trunk/LICENSE)
===================================================================
--- community-staging-x86_64/LICENSE	                        (rev 0)
+++ community-staging-x86_64/LICENSE	2019-11-06 03:41:36 UTC (rev 524258)
@@ -0,0 +1,27 @@
+Copyright (c) 2004-2014 Roger Binns <rogerb at rogerbinns.com>
+See src/traceback.c for code by Greg Ewing.
+
+All code and documentation is provided under this license:
+
+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:
+
+    1. 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.
+
+    2. Altered source versions must be plainly marked as such, and must not be
+    misrepresented as being the original software.
+
+    3. This notice may not be removed or altered from any source
+    distribution.
+
+Alternatively you may strike the license above and use it under any
+OSI approved open source license such as those listed at
+http://opensource.org/licenses/alphabetical

Copied: python-apsw/repos/community-staging-x86_64/PKGBUILD (from rev 524257, python-apsw/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-11-06 03:41:36 UTC (rev 524258)
@@ -0,0 +1,51 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+# Contributor: Brendan MacDonell <macdonellba at gmail dot com>
+# Contributor: Linmiao Xu <linmiao.xu at gmail.com>
+# Contributor: Juan Miguel Cejuela <juanmi at jmcejuela.net>
+
+pkgbase=python-apsw
+pkgname=('python-apsw' 'python2-apsw')
+pkgver=3.30.1
+pkgrel=2
+arch=('x86_64')
+url="https://github.com/rogerbinns/apsw"
+license=('MIT')
+depends=('sqlite')
+makedepends=('python' 'python2')
+source=("apsw-$pkgver-r1.tar.gz::https://github.com/rogerbinns/apsw/archive/$pkgver-r1.tar.gz")
+sha512sums=('4613acb23bc89ebde14b31d52c23136991e66b348f75e0e838c398e73d73fd92323324b7547a30294b1762d4575347410f1626742c09462676d4901ea45893c2')
+b2sums=('e5a27371a86ff2586afa5ed5dfc16d8fa3682051358a66178a12c18a5eac31413104e03495f28674a3e7f291b0c98e80fe9494d5c5fda0a3215fae9703282a54')
+
+build() {
+  cd apsw-${pkgver}-r1
+
+  python setup.py build --enable=load_extension
+  python2 setup.py build --enable=load_extension
+}
+
+check() {
+  cd "$srcdir"/apsw-${pkgver}-r1
+
+  # do glob expansion in variable assignment
+  pythonpaths=("$PWD/build/lib.linux-$CARCH"-3* "$PWD/build/lib.linux-$CARCH-"2*)
+  PYTHONPATH="${pythonpaths[0]}" python setup.py test
+  PYTHONPATH="${pythonpaths[1]}" python2 setup.py test
+}
+
+package_python-apsw() {
+depends+=('python')
+pkgdesc="Python wrapper for SQLite"
+  cd "$srcdir"/apsw-${pkgver}-r1
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-apsw() {
+depends+=('python2')
+pkgdesc="Python2 wrapper for SQLite"
+  cd "$srcdir"/apsw-${pkgver}-r1
+  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list