summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 574afa262937f116001c0b24ff531ab93212b249 (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
# Maintainer: Felix Desyatirikov <felixdesyatirikov@gmail.com>
pkgname=amd-boost-toggle-git
_pkgname=amd-boost-toggle
pkgver=1.0
pkgrel=1
pkgdesc="A turbo boost switch for AMD processors"
arch=('x86_64')
url="https://github.com/FelixDes/amd-boost-toggle"
license=('MIT')
makedepends=('git')
depends=('libxcrypt-compat' 'java-environment')
source=("git+${url}.git")
sha256sums=("SKIP")
conflicts=("amd-boost-toggle")

build() {
	cd "${srcdir}/${_pkgname}"
    ./gradlew linkReleaseExecutableNative
}

package() {
	cd "${srcdir}/${_pkgname}"
	cp ./build/bin/native/releaseExecutable/amd-boost-toggle.kexe ./amd-boost-toggle
	install -Dm755 ./amd-boost-toggle "${pkgdir}/usr/bin/${_pkgname}"
	install -Dm644 ./README.md "${pkgdir}/usr/share/doc/${_pkgname}/README.md"
	install -Dm644 ./LICENSE ${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE
}