From 684b9977e37650109617ac0631adfee45f3667c9 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 3 Jul 2024 16:45:21 -0400 Subject: [PATCH] backports/py3-apsw: new aport --- backports/py3-apsw/APKBUILD | 46 +++++++++++++++++++ backports/py3-apsw/detect-sqlite-config.patch | 8 ++++ 2 files changed, 54 insertions(+) create mode 100644 backports/py3-apsw/APKBUILD create mode 100644 backports/py3-apsw/detect-sqlite-config.patch diff --git a/backports/py3-apsw/APKBUILD b/backports/py3-apsw/APKBUILD new file mode 100644 index 0000000..1259ba3 --- /dev/null +++ b/backports/py3-apsw/APKBUILD @@ -0,0 +1,46 @@ +# Contributor: Francesco Colista +# Maintainer: Francesco Colista +pkgname=py3-apsw +_pkgname=apsw +pkgver=3.45.2.0 +pkgrel=1 +pkgdesc="Another Python SQLite Wrapper" +url="https://github.com/rogerbinns/apsw" +arch="all" +license="Zlib" +depends="python3" +makedepends=" + python3-dev + py3-gpep517 + py3-setuptools + py3-wheel + sqlite-dev + " +subpackages="$pkgname-pyc" +source="$pkgname-$pkgver.zip::https://github.com/rogerbinns/apsw/releases/download/$pkgver/apsw-$pkgver.zip + detect-sqlite-config.patch + " + +builddir="$srcdir/$_pkgname-$pkgver" + +build() { + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 +} + +check() { + python3 -m venv --clear --without-pip --system-site-packages .testenv + .testenv/bin/python3 -m installer .dist/*.whl + .testenv/bin/python3 setup.py build_test_extension test +} + +package() { + python3 -m installer -d "$pkgdir" \ + .dist/*.whl +} + +sha512sums=" +0260f6479d5f1188ad172dfc0dd7e4a03c9d809d2f80c2296e587a19286681bb2ce759b0bd19ec6957e2902f18729b7e79410e4db79dff9918089f57dd510828 py3-apsw-3.45.2.0.zip +8f3957bd6fecb5660a7cab367043e4ccdacd87d8963bbe41cc3d525265de28f08aa207099658d785be29c5c90b818c1418f766995cd780d02b8e36252a389758 detect-sqlite-config.patch +" diff --git a/backports/py3-apsw/detect-sqlite-config.patch b/backports/py3-apsw/detect-sqlite-config.patch new file mode 100644 index 0000000..4750250 --- /dev/null +++ b/backports/py3-apsw/detect-sqlite-config.patch @@ -0,0 +1,8 @@ +diff --git a/setup.apsw b/setup.apsw +index 68dedb9..3ceb10b 100644 +--- a/setup.apsw ++++ b/setup.apsw +@@ -1 +1,3 @@ + # You can put ini format directives here in addition to command line flags ++[build_ext] ++use_system_sqlite_config = True