Date: Thursday, April 6, 2023 @ 13:18:42
Author: felixonmars
Revision: 1438827
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 1438824, python-apsw/trunk/LICENSE)
python-apsw/repos/community-staging-x86_64/PKGBUILD
(from rev 1438824, python-apsw/trunk/PKGBUILD)
----------+
LICENSE | 27 +++++++++++++++++++++++++++
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
2 files changed, 66 insertions(+)
Copied: python-apsw/repos/community-staging-x86_64/LICENSE (from rev 1438824,
python-apsw/trunk/LICENSE)
===================================================================
--- community-staging-x86_64/LICENSE (rev 0)
+++ community-staging-x86_64/LICENSE 2023-04-06 13:18:42 UTC (rev 1438827)
@@ -0,0 +1,27 @@
+Copyright (c) 2004-2014 Roger Binns <[email protected]>
+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 1438824,
python-apsw/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2023-04-06 13:18:42 UTC (rev 1438827)
@@ -0,0 +1,39 @@
+# Contributor: Eli Schwartz <[email protected]>
+# Contributor: Brendan MacDonell <macdonellba at gmail dot com>
+# Contributor: Linmiao Xu <[email protected]>
+# Contributor: Juan Miguel Cejuela <[email protected]>
+
+pkgname=python-apsw
+pkgver=3.40.0.0
+pkgrel=2
+pkgdesc="Python wrapper for SQLite"
+arch=('x86_64')
+url="https://github.com/rogerbinns/apsw"
+license=('MIT')
+makedepends=('python-setuptools')
+depends=('python' 'sqlite')
+source=("apsw-$pkgver.tar.gz::https://github.com/rogerbinns/apsw/archive/$pkgver.tar.gz")
+sha512sums=('61ae7d0a6f394176af462c5e80eae1f8fdc9395fcb64d4956c755d552ab0dcac83349633e7867f2fa661a6b707c80b4ae65fd68cd91b0f0d2535aedf65b4a517')
+b2sums=('9539bbffd9cbcdee58e798261f9fb09a3f691d442cc80de664ce3d48b6f36608624e8f0b718edf87171bd8e68999ee16ea3829698e9d3277afa5b33931f464cc')
+
+build() {
+ cd apsw-${pkgver}
+
+ python setup.py build --enable=load_extension
+}
+
+check() {
+ cd "$srcdir"/apsw-${pkgver}
+
+ gcc ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -fPIC -shared -o testextension.sqlext
src/testextension.c
+ # do glob expansion in variable assignment
+ local python_version=$(python -c 'import sys; print("".join(map(str,
sys.version_info[:2])))')
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-${python_version}" python -m
unittest discover -vs .
+}
+
+package() {
+ cd "$srcdir"/apsw-${pkgver}
+
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}