mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
testing/wordgrinder: new aport
WordGrinder is a simple, Unicode-aware word processor that runs on the console.
This commit is contained in:
parent
72486794b2
commit
e96116f925
24
testing/wordgrinder/APKBUILD
Normal file
24
testing/wordgrinder/APKBUILD
Normal file
@ -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"
|
23
testing/wordgrinder/fixes-musl.patch
Normal file
23
testing/wordgrinder/fixes-musl.patch
Normal file
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user