aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fa5750da7d8524c3a1c41ebd9a44ac05049c270f (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
# Maintainer: Daniel "dtubber" Wanner <daniel.wanner@tubber.xyz>

pkgname="ryzenadj-git"
pkgver=v0.2.r3.g68bf3a1
pkgrel=2
pkgdesc="RyzenAdj tool for adjusting Ryzen Mobile power states"
arch=("x86_64")
makedepends=("cmake")
license=("LGPL2")
source=("$pkgname::git+https://github.com/FlyGoat/RyzenAdj")
md5sums=("SKIP")

pkgver() {
    cd $pkgname
    git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'    
}

build() {
    cd $pkgname
    mkdir build
    cd build
    cmake ..
    make -j
}

package() {
    mkdir -p $pkgdir/usr/bin
    cp $pkgname/build/ryzenadj $pkgdir/usr/bin/
    chmod +x $pkgdir/usr/bin/ryzenadj
}