summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorElXreno2019-06-26 16:36:38 +0000
committerElXreno2019-06-26 16:36:38 +0000
commite5bededd269671fdba6ea9935a2096ce15fa8ad9 (patch)
tree4196096473719ba2780b1ed9e7cd22b999a3a329
parentc9f03af47ec85f6359090414b78959749f987351 (diff)
downloadaur-e5bededd269671fdba6ea9935a2096ce15fa8ad9.tar.gz
desktop entry file generation
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD5
2 files changed, 6 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5c50a6e2627..3b7ce56d3ee 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,12 @@
pkgbase = rescuetime2
pkgdesc = Application time-tracking for Linux. Stable version
pkgver = 2.14.3.1
- pkgrel = 2
+ pkgrel = 3
url = https://www.rescuetime.com
arch = i686
arch = x86_64
license = proprietary
+ makedepends = gendesk
depends = qt5-base
depends = xorg-xprop
depends = xprintidle
diff --git a/PKGBUILD b/PKGBUILD
index 5f48cab24b3..e20fff7caa9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,12 +2,13 @@
pkgname=rescuetime2
pkgver=2.14.3.1
-pkgrel=2
+pkgrel=3
pkgdesc="Application time-tracking for Linux. Stable version"
arch=('i686' 'x86_64')
url=https://www.rescuetime.com
license=('proprietary')
depends=('qt5-base' 'xorg-xprop' 'xprintidle')
+makedepends=('gendesk')
conflicts=('rescuetime')
source_i686=("${pkgname}_${pkgver}_i686.deb"::"$url/installers/rescuetime_current_i386.deb")
source_x86_64=("${pkgname}_${pkgver}_amd64.deb"::"$url/installers/rescuetime_current_amd64.deb")
@@ -21,11 +22,13 @@ pkgver() {
prepare() {
bsdtar -xf control.tar.gz control
bsdtar -xf data.tar.xz
+ gendesk -f --pkgname="RescueTime" --pkgdesc="$pkgdesc" --categories=Office --exec=rescuetime
}
package() {
install -Dm644 {,"$pkgdir"/}usr/share/rescuetime/curl-ca-bundle.crt
install -Dm755 {,"$pkgdir"/}usr/bin/rescuetime
+ install -Dm644 "$srcdir"/RescueTime.desktop -t "$pkgdir"/usr/share/applications
}
post_install() {