Subject: [PATCH 1/2] testing/deltachat: new aport

From: link2xt <[email-masked]>
Date: Sun, 1 Aug 2021 15:36:16 +0300

https://delta.chat/
Delta Chat core library
---
 testing/deltachat/APKBUILD | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 testing/deltachat/APKBUILD

diff --git a/testing/deltachat/APKBUILD b/testing/deltachat/APKBUILD
new file mode 100644
index 0000000000..ed625459c2
--- /dev/null
+++ b/testing/deltachat/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: link2xt <[email-masked]>
+# Maintainer: link2xt <[email-masked]>
+pkgname=deltachat
+_pkgname=deltachat-core-rust
+pkgver=1.56.0
+pkgrel=0
+pkgdesc="Delta Chat core library"
+url="https://delta.chat/"
+arch="all"
+license="MPLv2"
+makedepends="rust cargo openssl-dev sqlite-dev cmake"
+subpackages="$pkgname-dev"
+source="$pkgname-$pkgver.tar.gz::https://github.com/deltachat/deltachat-core-rust/archive/$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+build() {
+	cmake -B build \
+		-DCMAKE_INSTALL_PREFIX=/usr \
+		-DCMAKE_INSTALL_LIBDIR=lib
+	cmake --build build
+}
+
+check() {
+	# Disabling default "vendored" feature to use system libraries.
+	cargo test --release --locked --no-default-features 
+}
+
+package() {
+	DESTDIR="$pkgdir" cmake --install build
+}
+
+sha512sums="
+b1b095074b34dde5bcdf870f9b4fe401ff329b08af4af5cf196346af1a09acd918d6902e5dae22edee9eb69cd4ff35a0c0b03be4aa10e883f241ace49d21168e  deltachat-1.56.0.tar.gz
+"
-- 
2.32.0

---

From: link2xt <[email-masked]>
Date: Sun, 1 Aug 2021 15:36:17 +0300

https://py.delta.chat/
Python bindings for Delta Chat core library
---
 testing/py3-deltachat/APKBUILD | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 testing/py3-deltachat/APKBUILD

diff --git a/testing/py3-deltachat/APKBUILD b/testing/py3-deltachat/APKBUILD
new file mode 100644
index 0000000000..23a9e98036
--- /dev/null
+++ b/testing/py3-deltachat/APKBUILD
@@ -0,0 +1,27 @@
+# Contributor: link2xt <[email-masked]>
+# Maintainer: link2xt <[email-masked]>
+pkgname=py3-deltachat
+_pkgname=deltachat-core-rust
+pkgver=1.56.0
+pkgrel=0
+pkgdesc="Python bindings for Delta Chat core library"
+options="!check" # most tests are online and require IMAPClient library not packaged in Alpine yet
+url="https://py.delta.chat/"
+arch="all"
+license="MPLv2"
+depends="deltachat py3-cffi py3-pluggy py3-setuptools python3"
+makedepends="deltachat-dev py3-setuptools_scm python3-dev"
+source="$pkgname-$pkgver.tar.gz::https://github.com/deltachat/deltachat-core-rust/archive/$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver/python"
+
+build() {
+	SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver" python3 setup.py build
+}
+
+package() {
+	SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver" python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="
+b1b095074b34dde5bcdf870f9b4fe401ff329b08af4af5cf196346af1a09acd918d6902e5dae22edee9eb69cd4ff35a0c0b03be4aa10e883f241ace49d21168e  py3-deltachat-1.56.0.tar.gz
+"
-- 
2.32.0