pkg-rgb-led/PKGBUILD
BigfootACA 9e0f9e1b6d
Some checks failed
gitea/pkg-rgb-led/pipeline/head There was a failure building this commit
Initial commit
2024-03-14 12:10:42 +08:00

35 lines
705 B
Bash

# Maintainer: BigfootACA <bigfoot@classfun.cn>
pkgname=rgb-led
pkgver=r1.c3f2f19
pkgrel=1
pkgdesc="A Linux GUI Application to set RGB LEDs"
arch=(x86_64 aarch64 armv7 riscv64)
url="https://github.com/BigfootACA/rgb_led"
license=(GPL3)
depends=(qt6-base qt6-svg jsoncpp libbsd)
makedepends=(gcc cmake git)
source=("${pkgname%-git}::git+${url}.git")
sha256sums=('SKIP')
pkgver(){
cd "${srcdir}/${pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare(){
cd "${srcdir}/${pkgname}"
git clean -dfx
}
build(){
cd "${srcdir}/${pkgname}"
cmake -S . -B build
make -C build
}
package(){
cd "${srcdir}/${pkgname}"
make -C build DESTDIR="${pkgdir}" install
}