-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
33 lines (29 loc) · 858 Bytes
/
PKGBUILD
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
# Maintainer: Daniel "dtubber" Wanner <daniel.wanner@tubber.xyz>
pkgname="ryzenadj-git"
pkgver=0.5.2.r2.g82afad3
pkgrel=2
pkgdesc="RyzenAdj tool for adjusting Ryzen Mobile power states"
url="https://github.com/FlyGoat/RyzenAdj"
arch=("x86_64")
depends=("pciutils")
makedepends=("git" "cmake")
license=("LGPL3")
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname%-git}::git+https://github.com/FlyGoat/RyzenAdj")
sha256sums=("SKIP")
pkgver() {
cd "$srcdir/${pkgname%-git}"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/${pkgname%-git}"
mkdir build && cd build
cmake ..
make
}
package() {
cd "$srcdir/${pkgname%-git}"
install -Dsm 755 build/ryzenadj $pkgdir/usr/bin/ryzenadj
install -Dsm 744 build/libryzenadj.so $pkgdir/usr/lib/libryzenadj.so
}