aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlink2xt <link2xt@testrun.org>2021-08-01 17:08:50 +0300
committerdispatch <dispatch@listserv.local>2021-08-01 14:09:09 +0000
commit3941c20c206e8dfabcb538023119e0230ed15010 (patch)
tree12722ada19cb6a8e8e6ece5492b341e47caabb81
parent9cb79820866622f77d3c74513c58aa70fd509f06 (diff)
downloadaports-3941c20c206e8dfabcb538023119e0230ed15010.tar.gz
aports-3941c20c206e8dfabcb538023119e0230ed15010.tar.bz2
aports-3941c20c206e8dfabcb538023119e0230ed15010.tar.xz
testing/deltachat: new aport
https://delta.chat/ Delta Chat core library
-rw-r--r--testing/deltachat/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/deltachat/APKBUILD b/testing/deltachat/APKBUILD
new file mode 100644
index 0000000000..f5f5ad46ba
--- /dev/null
+++ b/testing/deltachat/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: link2xt <link2xt@testrun.org>
+# Maintainer: link2xt <link2xt@testrun.org>
+pkgname=deltachat
+_pkgname=deltachat-core-rust
+pkgver=1.56.0
+pkgrel=0
+pkgdesc="Delta Chat core library"
+url="https://delta.chat/"
+arch="all"
+license="MPL-2.0"
+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
+"