From ea6663a4e561ae6be2b89a92ab139eff672b0c94 Mon Sep 17 00:00:00 2001 From: cinerea0 Date: Wed, 5 Aug 2020 22:00:00 -0400 Subject: [PATCH] New package: ly-0.5.2 --- srcpkgs/ly/files/ly/conf | 8 +++++ srcpkgs/ly/files/ly/run | 5 +++ srcpkgs/ly/patches/config.ini.patch | 12 +++++++ srcpkgs/ly/template | 56 +++++++++++++++++++++++++++++ 4 files changed, 81 insertions(+) create mode 100644 srcpkgs/ly/files/ly/conf create mode 100755 srcpkgs/ly/files/ly/run create mode 100644 srcpkgs/ly/patches/config.ini.patch create mode 100644 srcpkgs/ly/template diff --git a/srcpkgs/ly/files/ly/conf b/srcpkgs/ly/files/ly/conf new file mode 100644 index 00000000000..31223b16bfb --- /dev/null +++ b/srcpkgs/ly/files/ly/conf @@ -0,0 +1,8 @@ +BAUD_RATE=38400 +TERM_NAME=linux +# don't change the following value without also changing the "tty" value in /etc/ly/config.ini +TTY=7 + +if [ "${TTY}" = "1" ]; then + GETTY_ARGS="--noclear" +fi diff --git a/srcpkgs/ly/files/ly/run b/srcpkgs/ly/files/ly/run new file mode 100755 index 00000000000..3b66be6142c --- /dev/null +++ b/srcpkgs/ly/files/ly/run @@ -0,0 +1,5 @@ +#!/bin/sh + +[ -r conf ] && . ./conf + +exec setsid agetty ${GETTY_ARGS} -nl /usr/bin/ly "tty${TTY}" "${BAUD_RATE}" "${TERM_NAME}" diff --git a/srcpkgs/ly/patches/config.ini.patch b/srcpkgs/ly/patches/config.ini.patch new file mode 100644 index 00000000000..0adeb3bc93a --- /dev/null +++ b/srcpkgs/ly/patches/config.ini.patch @@ -0,0 +1,12 @@ +--- res/config.ini 2020-07-28 11:35:08.000000000 -0400 ++++ "res/config copy.ini" 2020-08-05 00:00:19.044893166 -0400 +@@ -79,7 +79,8 @@ + #term_reset_cmd = /usr/bin/tput reset + + # tty in use +-#tty = 2 ++# if you change this value, you must also change the "TTY" value in /etc/sv/ly/conf ++tty = 7 + + # wayland setup command + #wayland_cmd = /etc/ly/wsetup.sh diff --git a/srcpkgs/ly/template b/srcpkgs/ly/template new file mode 100644 index 00000000000..f3467fc6a56 --- /dev/null +++ b/srcpkgs/ly/template @@ -0,0 +1,56 @@ +# Template file for 'ly' +pkgname=ly +version=0.5.2 +revision=1 +_argoat_githash=0eb7afae7a001094c9166a8959e021375707522c +_testoasterror_githash=ee7c9d031d4632a6f381a6c174a38539bac04068 +_configator_githash=8cec1786196ae6f6a8b35e66181277457f2a2bb2 +_ctypes_githash=eb4b36559de8d17015f9416861ed085d06f5f5ed +_dragonfail_githash=0a2492c6aab3ff64e182db894ce4d40b26799fbd +_termbox_githash=23fff64470b0730959b39c70aa31fbddd776d9bc +build_style=gnu-makefile +conf_files="/etc/ly/config.ini" +makedepends="ncurses-devel pam-devel xcb-util-devel libX11-devel" +depends="pam util-linux xauth" +short_desc="TUI (ncurses-like) display manager" +maintainer="cinerea0 " +license="WTFPL" +homepage="https://github.com/nullgemm/ly" +distfiles="https://github.com/nullgemm/ly/archive/v${version}.tar.gz + https://github.com/nullgemm/argoat/archive/${_argoat_githash}.tar.gz>argoat-${_argoat_githash}.tar.gz + https://github.com/nullgemm/testoasterror/archive/${_testoasterror_githash}.tar.gz>testoasterror-${_testoasterror_githash}.tar.gz + https://github.com/nullgemm/configator/archive/${_configator_githash}.tar.gz>configator-${_configator_githash}.tar.gz + https://raw.githubusercontent.com/nullgemm/ctypes/${_ctypes_githash}/ctypes.h>ctypes-${_ctypes_githash}.h + https://github.com/nullgemm/dragonfail/archive/${_dragonfail_githash}.tar.gz>dragonfail-${_dragonfail_githash}.tar.gz + https://github.com/nullgemm/termbox_next/archive/${_termbox_githash}.tar.gz>termbox_next-${_termbox_githash}.tar.gz" +checksum="3460c2c8015add2946f9ff5d3e4bf051d7c07005698fe61279cedacd1283e010 + 65b0b5d688f8538513f335795156441365b9cb319a28d2defbb29d81ea43a188 + d627845bcece46499801bbef5b2ccf3e0bfe39493b52a16ae34478e54ab11bd6 + 2067100f9779eceb5abefa9402ed56546314ca5ad6b3d5156d3e1eb46c853679 + ef169974c68b548dc8ac83bd4714622775b024fab07dc2b7fe96e8e8f102dbab + d5cdd6d528a43c35d08e7fcac849370c07d949671ef592cfecb02b23ad3c4dad + 76d73183d2191e9e37285f39f2b1bd51f1dc2d991637902ff3c1aa35111b288d" +skip_extraction="ctypes-${_ctypes_githash}.h" + +post_extract() { + cp -rv ../argoat-${_argoat_githash}/* sub/argoat/ + cp -rv ../testoasterror-${_testoasterror_githash}/* sub/argoat/sub/testoasterror/ + cp -rv ../configator-${_configator_githash}/* sub/configator/ + cp -rv $XBPS_SRCDISTDIR/$pkgname-$version/ctypes-${_ctypes_githash}.h sub/ctypes/ctypes.h + cp -rv ../dragonfail-${_dragonfail_githash}/* sub/dragonfail/ + cp -rv ../termbox_next-${_termbox_githash}/* sub/termbox_next/ +} + +pre_build() { + cd sub/argoat/sub/testoasterror + make + cd ../../ + make + cd ../../ + vsed -i makefile -e "s/^\t@/\t/g" +} + +post_install() { + rm -f $DESTDIR/usr/lib/systemd/system/ly.service + vsv ly +}