aboutsummaryrefslogtreecommitdiffstats
path: root/testing/wordgrinder
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2018-03-25 01:45:41 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2018-03-25 01:46:13 +0000
commite96116f925011fae5ddf83a07cf778e8a9738211 (patch)
tree1bd94dec555c366e8266b1648806046fb54fe75e /testing/wordgrinder
parent72486794b2786a400c9e908af9419230b1980726 (diff)
downloadaports-e96116f925011fae5ddf83a07cf778e8a9738211.tar.bz2
aports-e96116f925011fae5ddf83a07cf778e8a9738211.tar.xz
testing/wordgrinder: new aport
WordGrinder is a simple, Unicode-aware word processor that runs on the console.
Diffstat (limited to 'testing/wordgrinder')
-rw-r--r--testing/wordgrinder/APKBUILD24
-rw-r--r--testing/wordgrinder/fixes-musl.patch23
2 files changed, 47 insertions, 0 deletions
diff --git a/testing/wordgrinder/APKBUILD b/testing/wordgrinder/APKBUILD
new file mode 100644
index 0000000000..a26a32de13
--- /dev/null
+++ b/testing/wordgrinder/APKBUILD
@@ -0,0 +1,24 @@
+# Contributor: Roberto Oliveira <robertoguimaraes8@gmail.com>
+# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com>
+pkgname=wordgrinder
+pkgver=0.7.1
+pkgrel=0
+pkgdesc="A simple Unicode-aware word processor that runs on the console"
+url="https://cowlark.com/wordgrinder/"
+arch="all"
+license="MIT"
+makedepends="ninja zlib-dev ncurses-dev uthash-dev freetype-dev libxft-dev"
+subpackages="$pkgname-doc"
+options="!check"
+source="$pkgname-$pkgver.tar.gz::https://github.com/davidgiven/wordgrinder/archive/$pkgver.tar.gz
+ fixes-musl.patch"
+
+builddir="$srcdir/$pkgname-$pkgver"
+
+package() {
+ cd "$builddir"
+ make install PREFIX=/usr DESTDIR="$pkgdir"
+}
+
+sha512sums="9976ade4be5264ae1afccd7a7fe4e321414919c5b6fbd6a0db4d024dc35721a8e6530f51176f24e9c17eff735b633ffd281de68802a76da54207a1c3dba0fd05 wordgrinder-0.7.1.tar.gz
+559eb2c04ba950fa72a0474e6bb74d2fbe64e8322af13d9b15622bde93013d0b8adba30fda2fa8e0f1e86ba1b7a28c238c5284c98685f118117314e2dea9b4ed fixes-musl.patch"
diff --git a/testing/wordgrinder/fixes-musl.patch b/testing/wordgrinder/fixes-musl.patch
new file mode 100644
index 0000000000..491993181a
--- /dev/null
+++ b/testing/wordgrinder/fixes-musl.patch
@@ -0,0 +1,23 @@
+--- a/src/c/arch/unix/cursesw/dpy.c
++++ b/src/c/arch/unix/cursesw/dpy.c
+@@ -114,7 +114,7 @@
+ {
+ struct timeval then;
+ gettimeofday(&then, NULL);
+- u_int64_t thenms = (then.tv_usec/1000) + ((u_int64_t) then.tv_sec*1000);
++ uint64_t thenms = (then.tv_usec/1000) + ((uint64_t) then.tv_sec*1000);
+
+ for (;;)
+ {
+@@ -123,9 +123,9 @@
+ {
+ struct timeval now;
+ gettimeofday(&now, NULL);
+- u_int64_t nowms = (now.tv_usec/1000) + ((u_int64_t) now.tv_sec*1000);
++ uint64_t nowms = (now.tv_usec/1000) + ((uint64_t) now.tv_sec*1000);
+
+- int delay = ((u_int64_t) timeout*1000) + nowms - thenms;
++ int delay = ((uint64_t) timeout*1000) + nowms - thenms;
+ if (delay <= 0)
+ return -KEY_TIMEOUT;
+