summaryrefslogtreecommitdiff
path: root/skip/screen/screen.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-04 15:08:04 +0100
committerdavidovski <david@davidovski.xyz>2022-06-04 15:08:04 +0100
commit873665024ebfaa761ee49b508a79db7178aeb778 (patch)
tree6cd3b4ce3a9f4b0586ffa48e73a6ba4c8da2db43 /skip/screen/screen.xibuild
parent4445f6e15185f58dc599390ab74df3ca19b437b7 (diff)
added gnupg
Diffstat (limited to 'skip/screen/screen.xibuild')
-rw-r--r--skip/screen/screen.xibuild43
1 files changed, 43 insertions, 0 deletions
diff --git a/skip/screen/screen.xibuild b/skip/screen/screen.xibuild
new file mode 100644
index 0000000..e5e08c1
--- /dev/null
+++ b/skip/screen/screen.xibuild
@@ -0,0 +1,43 @@
+#!/bin/sh
+
+NAME="screen"
+DESC="Window manager that multiplexes a physical terminal"
+
+MAKEDEPS="autoconf automake utmps ncurses ncurses libutempter"
+
+PKG_VER=4.9.0
+SOURCE="https://ftp.gnu.org/gnu/screen/screen-$PKG_VER.tar.gz"
+
+ADDITIONAL="
+utmpx.patch
+"
+
+prepare() {
+ ./autogen.sh
+}
+
+build() {
+ CFLAGS="$CFLAGS -DNONETHACK -DGETUTENT -I/usr/include/utmps" \
+ LIBS="-lutmps -lskarnet" ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --with-sys-screenrc=/etc/screenrc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --enable-colors256 \
+ --enable-telnet \
+ --enable-rxvt_osc
+ make
+}
+
+package() {
+ make -j1 DESTDIR="$PKG_DEST" install
+
+ # remove suid root
+ find "$PKG_DEST" -type f -perm -u+s \
+ | xargs chmod -s
+
+ install -Dm644 etc/etcscreenrc "$PKG_DEST"/etc/screenrc
+ install -Dm644 etc/screenrc "$PKG_DEST"/etc/skel/.screenrc
+}
+