summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 52a29b09d688f133ebef2aeb4df85da6d7aa9235 (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
39
40
41
# Maintainer: Sergey A. <murlakatamenka@disroot.org>

pkgname=tuxclocker
pkgver=0.1.1
pkgrel=2
pkgdesc="Qt5 GPU overclocking GUI utility."
arch=('x86_64')
url="https://github.com/Lurkki14/tuxclocker"
license=('GPL3')
depends=('qt5-x11extras' 'nvidia-settings' 'libxnvctrl' 'nvidia-utils')
conflicts=('tuxclocker-git')
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz"
"$pkgname.desktop")
md5sums=('7a6a4e669572a318d57b2096544a06b2'
'8c79ba856661ffb6815ca2e15c5e62e6')

build() {
    cd "$pkgname-$pkgver"
    qmake rojekti.pro
    make
}

package() {
    # Install the app
    install -d "$pkgdir"/opt/$pkgname/bin/
    cp -a "$pkgname-$pkgver"/tuxclocker "$pkgdir"/opt/$pkgname/bin/tuxclocker

    chmod 755 "$pkgdir"/opt/$pkgname/bin/$pkgname

    install -d "$pkgdir"/usr/bin/
    ln -s /opt/$pkgname/bin/$pkgname "$pkgdir"/usr/bin/$pkgname

    # Desktop Entry
    install -d "$pkgdir"/usr/share/{pixmaps,applications}

    cp -a "$pkgname-$pkgver"/gpuonfire.svg "$pkgdir"/opt/$pkgname/$pkgname.svg
    ln -s /opt/$pkgname/$pkgname.svg "$pkgdir"/usr/share/pixmaps/$pkgname.svg

    cp -a "$srcdir"/$pkgname.desktop "$pkgdir"/opt/$pkgname
    ln -s /opt/$pkgname/$pkgname.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop
}