Commit 0ba99b8a authored by Jeff Huang's avatar Jeff Huang 🤔

[skip-ci] python-apsw: update to 3.26.0, enable python3 support

parent 90726923
Pipeline #2720 skipped
Copyright (c) 2004-2014 Roger Binns <rogerb@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
# Contributions from Arch:
# Maintainer: Eli Schwartz <eschwartz@archlinux.org>
# Contributor: Brendan MacDonell <macdonellba at gmail dot com>
# Contributor: Linmiao Xu <linmiao.xu@gmail.com>
# Contributor: Juan Miguel Cejuela <juanmi@jmcejuela.net>
pkgbase=python-apsw
pkgname=('python3-apsw' 'python2-apsw')
pkgver=3.26.0
pkgrel=1
arch=('x86_64')
url="https://github.com/rogerbinns/apsw"
license=('MIT')
depends=('sqlite')
makedepends=('python3' 'python2')
source=("apsw-$pkgver-r1.tar.gz::https://github.com/rogerbinns/apsw/archive/$pkgver-r1.tar.gz")
sha256sums=('77e5722dbc169f9e1191cab4b108977bb9e927a4cd512332dde20b1196e70b36')
build() {
cd apsw-${pkgver}-r1
python3 setup.py build --enable=load_extension
python2 setup.py build --enable=load_extension
}
package_python3-apsw() {
depends+=('python3')
pkgdesc="Python3 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
}
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.
\ No newline at end of file
# Maintainer: Michael Haesel <michael.haesel@gmail.com>
pkgname=python2-apsw
pkgver=3.8.4.3
pkgrel=1
pkgdesc="Python wrapper for SQLite"
arch=('x86_64')
url="https://github.com/rogerbinns/apsw"
license=('MIT')
depends=('python2' 'sqlite3')
source=("https://github.com/rogerbinns/apsw/releases/download/${pkgver}/apsw-${pkgver}-r1.zip"
'LICENSE')
sha256sums=('f243d5318ce02cf4d36c18ce8dc23f822159c13cdd0779cb9b5f7fc42f298072'
'511345641f72270dc3e1867f37cbb6ac16b140a1ad4ab0bccbf46029ba007404')
package() {
cd apsw-${pkgver}-r1
python2 setup.py install --root="${pkgdir}/"
install -D -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment