blob: dffa2e562a0082f4c6e00f2b441dbabfc7ce5c09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
pkgname=zephyrusbling-git
pkgver=r24.80956bf
pkgrel=1
pkgdesc="A utility to display images on the LEDs on the back of the Zephyrus G14 laptop"
url="https://github.com/Meumeu/ZephyrusBling"
arch=("x86_64")
depends=("asusctl" "cli11" "fmt" "glm" "microsoft-gsl" "sdbus-cpp")
makedepends=("boost" "cmake")
source=(
"${pkgname%-git}::git+https://github.com/Meumeu/ZephyrusBling.git"
"zephyrusblingd.service"
)
sha256sums=(
"SKIP"
"fa16762e0cd11ff6e53d3a0de4e57745ac32e8dea819cd9df9d93e7e4aca30b5"
)
pkgver() {
cd "${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/${pkgname%-git}"
mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX="/usr" ..
make
}
package() {
install -d -m0755 "${pkgdir}/usr/lib/systemd/user"
cp zephyrusblingd.service "${pkgdir}/usr/lib/systemd/user"
cd "${srcdir}/${pkgname%-git}/build"
make install DESTDIR="${pkgdir}"
}
|