summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 555a7b332fbd9b2bb93015e5d8570068bf4f9884 (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
pkgname="ryzenctrl-git"
pkgver=0.5.2.926.r0.g2f858a0
pkgrel=1
pkgdesc="Fine-tuning of power limits and frequency of APU Ryzen Mobile"
url="https://github.com/xodj/RyzenAdjCtrl"
arch=("x86_64")
depends=("ryzen_smu-dkms-git" "ryzenadj-git" "qt6-base" "qt6-svg")
makedepends=("git" "cmake" "qt6-tools")
optdepends=("faustus-rublag-dkms-git: (AUR) Needed for ArmoryCrate profiles support.")
license=("GPL3")
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname%-git}::git+https://github.com/xodj/RyzenAdjCtrl" "ryzenadj-git::git+https://github.com/FlyGoat/RyzenAdj")
sha256sums=("SKIP" "SKIP")
install="ryzenctrl-root.service.install"

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 -p && cd build
    cmake -DCMAKE_BUILD_TYPE=Release ..
    make
}

package() {
    cd "$srcdir/${pkgname%-git}"
    install -Dsm755 ./build/Appfolder/RyzenCtrl $pkgdir/usr/bin/RyzenCtrl
    install -Dm644 ./ru.ryzenctrl.service.conf $pkgdir/etc/dbus-1/system.d/ru.ryzenctrl.service.conf
	install -Dm755 ./RyzenCtrl.desktop $pkgdir/usr/share/applications/RyzenCtrl.desktop
    install -Dm644 ./ryzenctrl-root.service $pkgdir/usr/lib/systemd/system/ryzenctrl-root.service
	install -Dm644 ./media/main/amd_icon.png $pkgdir/usr/share/icons/hicolor/256x256/apps/amd_icon.png
}