Hello,
I created a greeter for the greetd login daemon called ReGreet
(https://github.com/rharish101/ReGreet). I wanted to publish a PKGBUILD
for this to the AUR, and hence I requested a review on the Arch Forums
here: https://bbs.archlinux.org/viewtopic.php?pid=2083695. Lone_Wolf on
the forums pointed out that the package should be called "regreet-git".
However, all other greeters for greetd (greetd-gtkgreet, greetd-qtgreet,
greetd-ddlm-git) all start with the "greetd-" prefix.
What should I name my package? "regreet-git" or "greetd-regreet-git"?
Should I stick with what the guidelines say, or the informal naming
convention of greetd greeters?
For your reference, I'm attaching the PKGBUILD and the .install file here.
# Maintainer: Harish Rajagopal <harish dot rajagopals at gmail dot com>
_pkgname=regreet
pkgname="greetd-$_pkgname-git"
pkgver=r75.b0b21d1
pkgrel=1
pkgdesc="Clean and customizable greeter for greetd"
arch=('x86_64')
url="https://github.com/rharish101/ReGreet"
license=(GPL3)
install="$pkgname.install"
source=("$_pkgname::git+$url.git")
sha256sums=('SKIP')
makedepends=(cargo git)
depends=(greetd gtk4)
pkgver() {
cd "$pkgname"
printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short
HEAD)"
}
prepare() {
cd "$pkgname"
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd "$pkgname"
export RUSTUP_TOOLCHAIN=stable
export GREETD_CONFIG_DIR="/etc/greetd"
export CACHE_DIR="/var/cache/${_pkgname}"
export LOG_DIR="/var/log/${_pkgname}"
export SESSION_DIRS="/usr/share/xsessions:/usr/share/wayland-sessions"
cargo build --frozen --release --target-dir=target
}
package() {
cd "$pkgname"
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$_pkgname"
install -Dm0644 -t "$pkgdir/usr/share/$_pkgname/" "$_pkgname.sample.toml"
install -Dm0644 "systemd-tmpfiles.conf"
"$pkgdir/usr/lib/tmpfiles.d/$_pkgname.conf"
}
post_install() {
_pkgname=regreet
echo "Sample configuration file installed at
/usr/share/$_pkgname/$_pkgname.sample.toml"
}