summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorElXreno2019-06-26 16:36:38 +0000
committerElXreno2019-06-26 16:36:38 +0000
commite5bededd269671fdba6ea9935a2096ce15fa8ad9 (patch)
tree4196096473719ba2780b1ed9e7cd22b999a3a329 /PKGBUILD
parentc9f03af47ec85f6359090414b78959749f987351 (diff)
downloadaur-e5bededd269671fdba6ea9935a2096ce15fa8ad9.tar.gz
desktop entry file generation
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD5
1 files changed, 4 insertions, 1 deletions
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() {