Skip to content

Commit

Permalink
add: hello-rhino-git (#6778)
Browse files Browse the repository at this point in the history
Co-authored-by: oklopfer <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Jan 10, 2025
1 parent f2d8c9b commit f91c1fd
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 0 deletions.
1 change: 1 addition & 0 deletions packagelist
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ headset-deb
helix
hello
hello-rhino-bin
hello-rhino-git
heroic-games-launcher-deb
highlight-pointer-bin
honkers-launcher-bin
Expand Down
14 changes: 14 additions & 0 deletions packages/hello-rhino-git/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pkgbase = hello-rhino-git
gives = hello-rhino
pkgver = 2025.1-1
pkgdesc = Greeter application for Rhino Linux
arch = any
depends = libssl-dev
makedepends = cargo>=1.80.0
makedepends = meson
makedepends = ninja-build
makedepends = gettext
maintainer = AJStrong <[email protected]>
source = https://github.com/rhino-linux/hello-rhino.git

pkgname = hello-rhino-git
39 changes: 39 additions & 0 deletions packages/hello-rhino-git/hello-rhino-git.pacscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
pkgname="hello-rhino-git"
gives="hello-rhino"
source=("https://github.com/rhino-linux/hello-rhino.git")
arch=("any")
pkgver="2025.1-1"
depends=("libssl-dev")
makedepends=("cargo>=1.80.0" "meson" "ninja-build" "gettext")
pkgdesc="Greeter application for Rhino Linux"
maintainer=("AJStrong <[email protected]>")
external_connection=true

prepare() {
cd "${gives}"
meson setup build/ --buildtype=release --prefix=/usr/local
}

build() {
cd "${gives}"
ninja -C build/ -j"${NCPU}"
}

package() {
cd "${gives}"
DESTDIR="${pkgdir}" ninja -C build/ install
}

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
}
15 changes: 15 additions & 0 deletions srclist
Original file line number Diff line number Diff line change
Expand Up @@ -4465,6 +4465,21 @@ pkgbase = hello-rhino-bin

pkgname = hello-rhino-bin
---
pkgbase = hello-rhino-git
gives = hello-rhino
pkgver = 2025.1-1
pkgdesc = Greeter application for Rhino Linux
arch = any
depends = libssl-dev
makedepends = cargo>=1.80.0
makedepends = meson
makedepends = ninja-build
makedepends = gettext
maintainer = AJStrong <[email protected]>
source = https://github.com/rhino-linux/hello-rhino.git

pkgname = hello-rhino-git
---
pkgbase = hello
pkgver = 2.12.1
pkgdesc = GNU implementation of the classic program that prints 'Hello, world!' when you run it
Expand Down

0 comments on commit f91c1fd

Please sign in to comment.