From b9019b3c7190d7f91f3e935a7b1b6a05d73dc593 Mon Sep 17 00:00:00 2001 From: Arda Demir Date: Tue, 31 Mar 2020 16:40:04 +0300 Subject: [PATCH] New package: ly-0.5.0 --- srcpkgs/ly/files/ly/run | 13 +++++++++++++ srcpkgs/ly/template | 23 +++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 srcpkgs/ly/files/ly/run create mode 100644 srcpkgs/ly/template diff --git a/srcpkgs/ly/files/ly/run b/srcpkgs/ly/files/ly/run new file mode 100644 index 00000000000..0e3809bb881 --- /dev/null +++ b/srcpkgs/ly/files/ly/run @@ -0,0 +1,13 @@ +#!/bin/sh +TTY_NUM=2 +if [ -x /sbin/getty -o -x /bin/getty ]; then + # busybox + GETTY=getty +elif [ -x /sbin/agetty -o -x /bin/agetty ]; then + # util-linux + GETTY=agetty +fi + +sv check ${GETTY}-tty${TTY_NUM} >/dev/null || exit 1 + +exec /usr/bin/ly diff --git a/srcpkgs/ly/template b/srcpkgs/ly/template new file mode 100644 index 00000000000..5be6374472f --- /dev/null +++ b/srcpkgs/ly/template @@ -0,0 +1,23 @@ +# Template file for 'ly' +pkgname=ly +version=0.5.0 +revision=1 +short_desc="TUI (ncurses-like) display manager" +maintainer="Arda Demir " +conf_files="/etc/ly/config.ini" +depends="util-linux xauth" +license="WTFPL" +wrksrc="${pkgname}_${version}" +homepage="https://github.com/cylgom/ly" +distfiles="https://github.com/cylgom/ly/releases/download/v${version}/${pkgname}_${version}.zip" +checksum=f789b2923a01ca8114665180920c0bcf003ed1fa768c5d480ac01c0ea2fd94c7 +archs=noarch + +do_install() { + sed -i '/\.service/d' install.sh + DESTDIR="$PKGDESTDIR" ./install.sh +} + +post_install() { + vsv ${pkgname} +}