From e96116f925011fae5ddf83a07cf778e8a9738211 Mon Sep 17 00:00:00 2001 From: Roberto Oliveira Date: Sun, 25 Mar 2018 01:45:41 +0000 Subject: testing/wordgrinder: new aport WordGrinder is a simple, Unicode-aware word processor that runs on the console. --- testing/wordgrinder/APKBUILD | 24 ++++++++++++++++++++++++ testing/wordgrinder/fixes-musl.patch | 23 +++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 testing/wordgrinder/APKBUILD create mode 100644 testing/wordgrinder/fixes-musl.patch (limited to 'testing/wordgrinder') 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 +# Maintainer: Roberto Oliveira +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; + -- cgit v1.2.3