Initial commit

This commit is contained in:
Christian Schendel 2025-09-03 22:17:26 +02:00
commit 7874197bff
Signed by: doppelhelix
GPG key ID: 5874D2437CD5BBB3
8 changed files with 198 additions and 0 deletions

56
PKGBUILD Normal file
View file

@ -0,0 +1,56 @@
# Maintainer: Christian Schendel <doppelhelix@gmail.com>
# Contributor: coffebar i8ehkvien@mozmail.com
pkgname=waybar-module-pacman-updates
pkgver=0.2.9
pkgrel=1
pkgdesc='Waybar module for Arch to show system updates available'
arch=('x86_64')
url="https://github.com/coffebar/waybar-module-pacman-updates"
license=(
'GPL-3.0-or-later'
)
makedepends=(
cargo
git
)
source=("$pkgname-$pkgver::git+$url.git#tag=$pkgver")
sha256sums=('73d627b21c49dd7e7061bd0dd28ab2e901104899ee3dc2975a358136dffe1925')
options=(!lto)
prepare() {
cd "$pkgname-$pkgver"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "$pkgname-$pkgver"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features
}
check() {
cd "$pkgname-$pkgver"
export RUSTUP_TOOLCHAIN=stable
cargo test --frozen --all-features
}
package() {
depends+=(
curl
gcc-libs
glibc
openssl
pacman
pacman-contrib
waybar
)
cd "$pkgname-$pkgver"
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/waybar-module-pacman-updates"
install -Dm0644 -t "$pkgdir/usr/share/doc/$pkgname" "README.md"
install -Dm0644 -t "$pkgdir/usr/share/doc/$pkgname" "screenshot.png"
}
# vim: set ft=sh ts=4 sw=4 et: