commit 08ea839e8a6abba94ad94ed4404cc1adf67d10b6 Author: asce4s Date: Sun Feb 22 11:25:47 2026 +0800 Initial release diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000000000..d858a370330bd --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = wallity-git + pkgdesc = A desktop wallpaper manager built with Rust and Iced for Wayland/Hyprland + pkgver = r1.0000000 + pkgrel = 1 + url = https://github.com/asce4s/wallity-iced + arch = x86_64 + license = MIT + makedepends = cargo + makedepends = git + depends = wayland + depends = gcc-libs + provides = wallity + conflicts = wallity + source = wallity-git::git+https://github.com/asce4s/wallity-iced.git + sha256sums = SKIP + +pkgname = wallity-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000000000..4f4a16705e2c5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: Your Name +pkgname=wallity-git +pkgver=r20.08008c6 +pkgrel=1 +pkgdesc="A desktop wallpaper manager built with Rust and Iced for Wayland/Hyprland" +arch=('x86_64') +url="https://github.com/asce4s/wallity-iced" +license=('MIT') +depends=('wayland' 'gcc-libs') +makedepends=('cargo' 'git') +provides=('wallity') +conflicts=('wallity') +source=("${pkgname}::git+https://github.com/asce4s/wallity-iced.git") +sha256sums=('SKIP') + +pkgver() { + cd "${pkgname}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "${pkgname}" + export RUSTUP_TOOLCHAIN=stable + cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" +} + +build() { + cd "${pkgname}" + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + cargo build --frozen --release +} + +check() { + cd "${pkgname}" + export RUSTUP_TOOLCHAIN=stable + cargo test --frozen --release +} + +package() { + cd "${pkgname}" + install -Dm0755 -t "${pkgdir}/usr/bin/" "target/release/wallity" + install -Dm0644 -t "${pkgdir}/usr/share/licenses/${pkgname}/" LICENSE + install -Dm0644 -t "${pkgdir}/usr/share/doc/${pkgname}/" README.md +}