Subject: [alpine-aports] [PATCH] testing/mlterm: New aport

From: Marian Buschsieweke <[email-masked]>
Date: Mon, 16 Apr 2018 17:53:46 +0200

http://mlterm.sourceforge.net/
Mlterm is a multilingual terminal emulator on X11.

According to a recent LWN article [1], mlterm performs quite excellent
regarding input latency. As input latency can result in lower typing speed and
increases eye strain, muscle strain and the error rate, mlterm might be even
interesting for those who don't care about multilingual features.

[1]: https://lwn.net/Articles/751763/
---
 testing/mlterm/APKBUILD | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 testing/mlterm/APKBUILD

diff --git a/testing/mlterm/APKBUILD b/testing/mlterm/APKBUILD
new file mode 100644
index 0000000000..f11a89093b
--- /dev/null
+++ b/testing/mlterm/APKBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Marian Buschsieweke <[email-masked]>
+pkgname=mlterm
+pkgver=3.8.5
+pkgrel=0
+pkgdesc="Mlterm is a multilingual terminal emulator on X11"
+url="http://mlterm.sourceforge.net/"
+arch="all"
+license="BSD"
+makedepends="libx11-dev fribidi-dev cairo-dev"
+subpackages="$pkgname-doc"
+source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
+builddir="$srcdir/$pkgname-$pkgver"
+
+build() {
+	cd "$builddir"
+	./configure \
+		--prefix=/usr \
+		--sysconfdir=/etc \
+		--build=$CBUILD \
+		--host=$CHOST \
+		--target=$CTARGET \
+		--with-pic \
+		--disable-static \
+		--disable-ssh2 \
+		--disable-image \
+		--disable-dl-ctl \
+		--enable-optimize-redrawing
+	make all
+}
+
+package() {
+	cd "$builddir"
+	make DESTDIR="$pkgdir" install
+	# Fix permissions
+	chmod 755 "$pkgdir/usr/bin/mlterm"
+}
+sha512sums="c43a121ed6572bdd4501a6b27f54df65ff2c09682485c7902c5cbd6b4be64f35efcf8cce3923d77afc412d681a390edc240a6a2503478ea97e0c4953e0b807a7  mlterm-3.8.5.tar.gz"
-- 
2.17.0

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---

---

From: Leonardo Arena <[email-masked]>
Date: Tue, 17 Jul 2018 15:15:16 +0200

Hi,

sorry for the wait.

>  create mode 100644 testing/mlterm/APKBUILD

It fails to build for me with:

 gcc -Os -fomit-frame-pointer -Os -fomit-frame-pointer -DUSE_UTMPX
"-DLIBEXECDIR=\"/usr/libexec\"" "-DBINDIR=\"/usr/bin\"" -I. -c
bl_pty_bsd.c  -fPIC -DPIC -o .libs/bl_pty_bsd.o
../libtool --mode=compile gcc   -Os -fomit-frame-pointer -Os
-fomit-frame-pointer  -DUSE_UTMPX -DLIBEXECDIR=\"/usr/libexec\"
-DBINDIR=\"/usr/bin\" -I. -c bl_dlfcn_dl.c
bl_pty_bsd.c: In function 'bl_pty_fork':
bl_pty_bsd.c:177:20: error: 'CEOF' undeclared (first use in this function)
   tio.c_cc[VEOF] = CEOF;

Thanks!

/eo