Update PKGBUILD and .SRCINFO with GitHub Actions

This commit is contained in:
pathin 2026-02-22 02:43:03 +00:00
commit 390fbc36d0
2 changed files with 62 additions and 0 deletions

19
.SRCINFO Normal file
View file

@ -0,0 +1,19 @@
pkgbase = onset-git
pkgdesc = Lightweight XDG autostart manager for Linux
pkgver = r12.c44a8b8
pkgrel = 1
url = https://github.com/xPathin/onset
arch = x86_64
arch = aarch64
license = MIT
makedepends = rust
makedepends = cargo
makedepends = git
depends = gtk4
depends = libadwaita
provides = onset
conflicts = onset
source = git+https://github.com/xPathin/onset.git
sha256sums = SKIP
pkgname = onset-git

43
PKGBUILD Normal file
View file

@ -0,0 +1,43 @@
# Maintainer: Patrick Fischer <aur at pathin dot me>
pkgname=onset-git
pkgver=r12.c44a8b8
pkgrel=1
pkgdesc="Lightweight XDG autostart manager for Linux"
arch=('x86_64' 'aarch64')
url="https://github.com/xPathin/onset"
license=('MIT')
depends=('gtk4' 'libadwaita')
makedepends=('rust' 'cargo' 'git')
provides=('onset')
conflicts=('onset')
source=("git+https://github.com/xPathin/onset.git")
sha256sums=('SKIP')
pkgver() {
cd onset
if DESC=$(git describe --long --tags --abbrev=7 2>/dev/null); then
echo "$DESC" | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
else
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
fi
}
build() {
cd onset
cargo build --release --locked
}
check() {
cd onset
cargo test --release --locked
}
package() {
cd onset
install -Dm755 "target/release/onset" "$pkgdir/usr/bin/onset"
install -Dm644 "data/com.github.xPathin.onset.desktop" \
"$pkgdir/usr/share/applications/com.github.xPathin.onset.desktop"
install -Dm644 "data/icons/hicolor/scalable/apps/com.github.xPathin.onset.svg" \
"$pkgdir/usr/share/icons/hicolor/scalable/apps/com.github.xPathin.onset.svg"
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}