From 7349ca0517783ba9bd6dec66eea019f8e44e7f09 Mon Sep 17 00:00:00 2001 From: langfingaz Date: Mon, 3 May 2021 22:17:59 +0200 Subject: [PATCH] add screen --- pkg/de-p1st-mkinitcpio/PKGBUILD | 2 +- pkg/de-p1st-mkinitcpio/README.md | 2 +- .../mkinitcpio.conf.holoscript | 2 +- pkg/de-p1st-screen/.install | 15 ++++++++++ pkg/de-p1st-screen/PKGBUILD | 30 +++++++++++++++++++ pkg/de-p1st-screen/screenrc.holoscript | 7 +++++ 6 files changed, 55 insertions(+), 3 deletions(-) create mode 100644 pkg/de-p1st-screen/.install create mode 100644 pkg/de-p1st-screen/PKGBUILD create mode 100644 pkg/de-p1st-screen/screenrc.holoscript diff --git a/pkg/de-p1st-mkinitcpio/PKGBUILD b/pkg/de-p1st-mkinitcpio/PKGBUILD index 4d543dc..1224ae9 100644 --- a/pkg/de-p1st-mkinitcpio/PKGBUILD +++ b/pkg/de-p1st-mkinitcpio/PKGBUILD @@ -2,7 +2,7 @@ _pkgname=mkinitcpio _reponame=arch pkgname="de-p1st-$_pkgname" -pkgver=0.0.5 +pkgver=0.0.6 pkgrel=1 pkgdesc="mkinitcpio configuration" arch=('any') diff --git a/pkg/de-p1st-mkinitcpio/README.md b/pkg/de-p1st-mkinitcpio/README.md index 5cf1e8a..d618695 100644 --- a/pkg/de-p1st-mkinitcpio/README.md +++ b/pkg/de-p1st-mkinitcpio/README.md @@ -25,7 +25,7 @@ Hooks to for 4) keymap ```shell -HOOKS=(base udev resume modconf block keyboard keymap encrypt lvm2 btrfs fsck filesystems) +HOOKS=(base udev modconf block keyboard keymap encrypt lvm2 btrfs filesystems fsck resume) ``` ## crc32c_intel diff --git a/pkg/de-p1st-mkinitcpio/mkinitcpio.conf.holoscript b/pkg/de-p1st-mkinitcpio/mkinitcpio.conf.holoscript index ff26cfb..4d937bf 100644 --- a/pkg/de-p1st-mkinitcpio/mkinitcpio.conf.holoscript +++ b/pkg/de-p1st-mkinitcpio/mkinitcpio.conf.holoscript @@ -21,5 +21,5 @@ echo "$stdin" | grep '^#COMPRESSION="lz4"' sed ' s|^MODULES=(|MODULES=(crc32c-intel |; s|^#COMPRESSION="lz4".*$|COMPRESSION="lz4"|; - s|^HOOKS=(.*$|HOOKS=(base udev resume modconf block keyboard keymap encrypt lvm2 btrfs fsck filesystems)| + s|^HOOKS=(.*$|HOOKS=(base udev modconf block keyboard keymap encrypt lvm2 btrfs filesystems fsck resume)| ' <<< "$stdin" diff --git a/pkg/de-p1st-screen/.install b/pkg/de-p1st-screen/.install new file mode 100644 index 0000000..b754ef5 --- /dev/null +++ b/pkg/de-p1st-screen/.install @@ -0,0 +1,15 @@ +## arg 1: the new package version +post_install() { + holo apply +} + +## arg 1: the new package version +## arg 2: the old package version +post_upgrade() { + holo apply +} + +## arg 1: the old package version +post_remove() { + holo apply +} diff --git a/pkg/de-p1st-screen/PKGBUILD b/pkg/de-p1st-screen/PKGBUILD new file mode 100644 index 0000000..05616f8 --- /dev/null +++ b/pkg/de-p1st-screen/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Daniel Langbein +_pkgname=screen +_reponame=arch +pkgname="de-p1st-$_pkgname" +pkgver=0.0.1 +pkgrel=1 +pkgdesc="screen with configuration" +arch=('any') +url="https://codeberg.org/privacy1st/${_reponame}" +license=('MIT') +groups=() +depends=('screen' 'holo') +makedepends=('git') +optdepends=() +provides=() +conflicts=() +replaces=() +backup=() +options=() +install='.install' +changelog= +source=("git+${url}.git") +noextract=() +sha256sums=('SKIP') + +package() { + cd "${_reponame}/pkg/${pkgname}" + + install -Dm0544 screenrc.holoscript "$pkgdir"/usr/share/holo/files/"$pkgname"/etc/screenrc.holoscript +} diff --git a/pkg/de-p1st-screen/screenrc.holoscript b/pkg/de-p1st-screen/screenrc.holoscript new file mode 100644 index 0000000..e83ad47 --- /dev/null +++ b/pkg/de-p1st-screen/screenrc.holoscript @@ -0,0 +1,7 @@ +#!/bin/sh +# stdin: default config +# stdout: modified config +cat + +# 100 000 lines of scrollback +echo 'defscrollback 100000'