summaryrefslogtreecommitdiff
path: root/abduco
diff options
context:
space:
mode:
Diffstat (limited to 'abduco')
-rw-r--r--abduco/APKBUILD36
-rw-r--r--abduco/fix-tests.patch15
2 files changed, 51 insertions, 0 deletions
diff --git a/abduco/APKBUILD b/abduco/APKBUILD
new file mode 100644
index 0000000..607c308
--- /dev/null
+++ b/abduco/APKBUILD
@@ -0,0 +1,36 @@
+# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
+# Maintainer: Celeste <cielesti@protonmail.com>
+pkgname=abduco
+pkgver=0.6_git2020430
+_commit=8c32909a159aaa9484c82b71f05b7a73321eb491
+pkgrel=1
+pkgdesc="Session management in a clean and simple way"
+url="https://www.brain-dump.org/projects/abduco/"
+arch="all"
+license="ISC"
+subpackages="$pkgname-doc"
+# dvtm test fail inside container
+checkdepends="dvtm"
+source="$pkgname-$_commit.tar.gz::https://git.sr.ht/~martanne/$pkgname/archive/$_commit.tar.gz
+ fix-tests.patch
+ "
+builddir="$srcdir/$pkgname-$_commit"
+
+build() {
+ make
+}
+
+check() {
+ ./testsuite.sh
+}
+
+package() {
+ make PREFIX=/usr MANPREFIX=/usr/share/man DESTDIR="$pkgdir" install
+ install -Dm644 README.md LICENSE \
+ -t "$pkgdir"/usr/share/doc/$pkgname
+}
+
+sha512sums="
+dec2ecc9d185d617f89371a7a8578398e97ad3cbf245b9304579c638ee37e6614ecd0ee428da6b070edb31078f4646f19160c4c22722e1401289bdc70813e6c3 abduco-8c32909a159aaa9484c82b71f05b7a73321eb491.tar.gz
+0d9e5be04bfd9d0826c54d7a8ad8435dcd3559efd7eabca11ebab86f20acabd4d97e1c1fb81e895865e73034d4a2e278f409236f301a6d71ac907af66ced046b fix-tests.patch
+"
diff --git a/abduco/fix-tests.patch b/abduco/fix-tests.patch
new file mode 100644
index 0000000..746e438
--- /dev/null
+++ b/abduco/fix-tests.patch
@@ -0,0 +1,15 @@
+Without this change pgrep seems to return the PID of the abduco process
+spawned in the previous line because it may not be removed yet. Removing
+the pgrep invocation is not the best solution but good enough for now.
+
+diff -upr abduco-0.6.orig/testsuite.sh abduco-0.6/testsuite.sh
+--- abduco-0.6.orig/testsuite.sh 2019-02-14 11:33:19.521290879 +0100
++++ abduco-0.6/testsuite.sh 2019-02-14 11:33:29.361298623 +0100
+@@ -55,7 +55,6 @@ expected_abduco_detached_output() {
+
+ check_environment() {
+ [ "`$ABDUCO | wc -l`" -gt 1 ] && echo Abduco session exists && exit 1;
+- pgrep abduco && echo Abduco process exists && exit 1;
+ return 0;
+ }
+