summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD26
-rw-r--r--tuxclocker.desktop9
3 files changed, 34 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8d99f6a74cd..f53bbcda42e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = tuxclocker
pkgdesc = Qt5 GPU overclocking GUI utility.
pkgver = 0.1.1
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/Lurkki14/tuxclocker
arch = x86_64
license = GPL3
@@ -11,7 +11,9 @@ pkgbase = tuxclocker
depends = nvidia-utils
conflicts = tuxclocker-git
source = tuxclocker-0.1.1.tar.gz::https://github.com/Lurkki14/tuxclocker/archive/0.1.1.tar.gz
+ source = tuxclocker.desktop
md5sums = 7a6a4e669572a318d57b2096544a06b2
+ md5sums = 8c79ba856661ffb6815ca2e15c5e62e6
pkgname = tuxclocker
diff --git a/PKGBUILD b/PKGBUILD
index cdbb8ec0f76..52a29b09d68 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,15 +2,17 @@
pkgname=tuxclocker
pkgver=0.1.1
-pkgrel=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")
-md5sums=('7a6a4e669572a318d57b2096544a06b2')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz"
+"$pkgname.desktop")
+md5sums=('7a6a4e669572a318d57b2096544a06b2'
+'8c79ba856661ffb6815ca2e15c5e62e6')
build() {
cd "$pkgname-$pkgver"
@@ -19,5 +21,21 @@ build() {
}
package() {
- install -D -m755 "$pkgname-$pkgver/tuxclocker" -t "$pkgdir/usr/bin/"
+ # 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
}
diff --git a/tuxclocker.desktop b/tuxclocker.desktop
new file mode 100644
index 00000000000..ab841ef256a
--- /dev/null
+++ b/tuxclocker.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Type=Application
+Name=Tuxclocker
+Comment=GPU overclocking utility
+Exec=tuxclocker
+Icon=tuxclocker
+Terminal=false
+Categories=Utility;
+Keywords=overclock;amdgpu;nvidia;