From c91095540834d96d00c1f22160a6a9055dd2d755 Mon Sep 17 00:00:00 2001 From: oklopfer <104327997+oklopfer@users.noreply.github.com> Date: Fri, 10 Jan 2025 02:09:45 -0500 Subject: [PATCH] add: `hello-rhino-bin` (#6847) Co-authored-by: ook37 --- packagelist | 1 + packages/hello-rhino-bin/.SRCINFO | 16 ++++++++++ .../hello-rhino-bin/hello-rhino-bin.pacscript | 31 +++++++++++++++++++ srclist | 17 ++++++++++ 4 files changed, 65 insertions(+) create mode 100644 packages/hello-rhino-bin/.SRCINFO create mode 100644 packages/hello-rhino-bin/hello-rhino-bin.pacscript diff --git a/packagelist b/packagelist index 8e7ad7d5b1..7e2c1d0182 100644 --- a/packagelist +++ b/packagelist @@ -216,6 +216,7 @@ harmonoid-deb headset-deb helix hello +hello-rhino-bin heroic-games-launcher-deb highlight-pointer-bin honkers-launcher-bin diff --git a/packages/hello-rhino-bin/.SRCINFO b/packages/hello-rhino-bin/.SRCINFO new file mode 100644 index 0000000000..79368a6c69 --- /dev/null +++ b/packages/hello-rhino-bin/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = hello-rhino-bin + gives = hello-rhino + pkgver = 2025.1-1 + pkgdesc = Rhino Linux Welcome Screen + arch = arm64 + arch = amd64 + depends = gettext + replaces = hello-rhino + replaces = hello-rhino-git + maintainer = Oren Klopfer + source_arm64 = https://github.com/rhino-linux/hello-rhino/releases/download/v2025.1-1/hello-rhino_v2025.1-1_arm64.zip + sha256sums_arm64 = b63080659292f31546c36c7aa0517a4c8862684f4737039f8c2cf0b0e8f732e9 + source_amd64 = https://github.com/rhino-linux/hello-rhino/releases/download/v2025.1-1/hello-rhino_v2025.1-1_amd64.zip + sha256sums_amd64 = aa58b85e5f20a54ed2b3946d171f1e07bbb2df486b8cf4d67063809dc7aa4777 + +pkgname = hello-rhino-bin diff --git a/packages/hello-rhino-bin/hello-rhino-bin.pacscript b/packages/hello-rhino-bin/hello-rhino-bin.pacscript new file mode 100644 index 0000000000..6f2db1d90c --- /dev/null +++ b/packages/hello-rhino-bin/hello-rhino-bin.pacscript @@ -0,0 +1,31 @@ +pkgname="hello-rhino-bin" +depends=("gettext") +gives="hello-rhino" +pkgdesc="Rhino Linux Welcome Screen" +maintainer=("Oren Klopfer ") +pkgver="2025.1-1" +replaces=("${gives}" "${gives}-git") +arch=('arm64' 'amd64') +sha256sums_arm64=("b63080659292f31546c36c7aa0517a4c8862684f4737039f8c2cf0b0e8f732e9") +sha256sums_amd64=("aa58b85e5f20a54ed2b3946d171f1e07bbb2df486b8cf4d67063809dc7aa4777") +source=("https://github.com/rhino-linux/${gives}/releases/download/v${pkgver}/${gives}_v${pkgver}_${CARCH}.zip") + +package() { + mkdir -p "${pkgdir}/usr" + chmod +x "usr/local/bin/${gives}" + cp -rf usr/* "${pkgdir}/usr" +} + +post_install() { + mkdir -p "${homedir}/.config/autostart" + if ! [[ -f "${homedir}/.config/autostart/hello-rhino.desktop" ]]; then + sudo cp "/usr/local/share/applications/hello-rhino.desktop" "${homedir}/.config/autostart/hello-rhino.desktop" + sudo chown "${PACSTALL_USER}" "${homedir}/.config/autostart/hello-rhino.desktop" + fi +} + +post_remove() { + if [[ -f "${homedir}/.config/autostart/hello-rhino.desktop" ]]; then + sudo rm -f "${homedir}/.config/autostart/hello-rhino.desktop" + fi +} diff --git a/srclist b/srclist index 80cee753df..58f4e4bdaa 100644 --- a/srclist +++ b/srclist @@ -4400,6 +4400,23 @@ pkgbase = helix pkgname = helix --- +pkgbase = hello-rhino-bin + gives = hello-rhino + pkgver = 2025.1-1 + pkgdesc = Rhino Linux Welcome Screen + arch = arm64 + arch = amd64 + depends = gettext + replaces = hello-rhino + replaces = hello-rhino-git + maintainer = Oren Klopfer + source_arm64 = https://github.com/rhino-linux/hello-rhino/releases/download/v2025.1-1/hello-rhino_v2025.1-1_arm64.zip + sha256sums_arm64 = b63080659292f31546c36c7aa0517a4c8862684f4737039f8c2cf0b0e8f732e9 + source_amd64 = https://github.com/rhino-linux/hello-rhino/releases/download/v2025.1-1/hello-rhino_v2025.1-1_amd64.zip + sha256sums_amd64 = aa58b85e5f20a54ed2b3946d171f1e07bbb2df486b8cf4d67063809dc7aa4777 + +pkgname = hello-rhino-bin +--- pkgbase = hello pkgver = 2.12.1 pkgdesc = GNU implementation of the classic program that prints 'Hello, world!' when you run it