summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO11
-rw-r--r--PKGBUILD16
-rwxr-xr-xpaymo-widget2
3 files changed, 19 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ae9b5c5eb73..e0a0018819c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,13 @@
pkgbase = paymo-widget
pkgdesc = An app that allows you to track work time via a stopwatch or manually add bulk time for paymo
- pkgver = 6.7.4
- pkgrel = 4
+ pkgver = 7.0.8
+ pkgrel = 1
url = https://www.paymoapp.com/download/
arch = x86_64
license = proprietary
- source = paymo-widget-6.7.4-x86_64.AppImage::https://www.paymoapp.com/widget?os=linux
- sha512sums = 32a1abad843e774cdfaa97f312c7198f0aa2ef0e064c5f7071e1529519ce7f52a2e26555dbf53124dd6c4b58d07ff832a4b083cf8bde366d8a8c8753359a8030
+ source = paymo-widget-7.0.8-x86_64.AppImage::https://www.paymoapp.com/widget?os=linux
+ source = paymo-widget
+ sha512sums = 4744873e1dcde3feebeb0155938066a24bbce7c97e2f177130a5404f92eecde8890ffa755eec94d2d661520d20874540a7773886c7ba158b227779483b5395f3
+ sha512sums = 8989c0985cf8fcc2c73ae731ff60c733be6ab99ff9fa00ed31433aa0ed5c7e6b27162e3d7e578207a82cff6df8e50cdc46cef6626d47235cc76d916279a59698
pkgname = paymo-widget
-
diff --git a/PKGBUILD b/PKGBUILD
index dc786548c28..16b912beda1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,13 +1,13 @@
# Maintainer: Sven-Hendrik Haase <svenstaro@gmail.com>
pkgname=paymo-widget
-pkgver=6.7.4
-pkgrel=4
+pkgver=7.0.8
+pkgrel=1
pkgdesc="An app that allows you to track work time via a stopwatch or manually add bulk time for paymo"
arch=('x86_64')
url="https://www.paymoapp.com/download/"
license=(proprietary)
-source=("paymo-widget-${pkgver}-x86_64.AppImage::https://www.paymoapp.com/widget?os=linux")
-sha512sums=('32a1abad843e774cdfaa97f312c7198f0aa2ef0e064c5f7071e1529519ce7f52a2e26555dbf53124dd6c4b58d07ff832a4b083cf8bde366d8a8c8753359a8030')
+source=("paymo-widget-${pkgver}-x86_64.AppImage::https://www.paymoapp.com/widget?os=linux" "paymo-widget")
+sha512sums=('4744873e1dcde3feebeb0155938066a24bbce7c97e2f177130a5404f92eecde8890ffa755eec94d2d661520d20874540a7773886c7ba158b227779483b5395f3' '8989c0985cf8fcc2c73ae731ff60c733be6ab99ff9fa00ed31433aa0ed5c7e6b27162e3d7e578207a82cff6df8e50cdc46cef6626d47235cc76d916279a59698')
prepare() {
chmod +x "$srcdir"/paymo-widget-${pkgver}-x86_64.AppImage
@@ -19,11 +19,17 @@ package() {
cd squashfs-root
mkdir -p "$pkgdir"/opt/$pkgname
mkdir -p "$pkgdir"/usr/bin
+
+ # Install files
cp -r usr/share "$pkgdir"/usr/share
cp -r *.so AppRun paymo-widget paymo-widget-noloader resources locales *.dat *.bin *.pak "$pkgdir"/opt/$pkgname
install -Dm644 paymo-widget.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop
+
+ # Install launcher script that sets some required environment vars
+ cp "$srcdir"/paymo-widget "$pkgdir"/usr/bin/$pkgname
+
+ # Make desktop file use our launcher script
sed -i "s:Exec=AppRun:Exec=/usr/bin/$pkgname:" "$pkgdir"/usr/share/applications/$pkgname.desktop
- ln -s /opt/$pkgname/AppRun "$pkgdir"/usr/bin/$pkgname
find "$pkgdir"/usr/share -type d -exec chmod 755 {} \;
find "$pkgdir"/opt -type d -exec chmod 755 {} \;
diff --git a/paymo-widget b/paymo-widget
new file mode 100755
index 00000000000..2321bb5b295
--- /dev/null
+++ b/paymo-widget
@@ -0,0 +1,2 @@
+#!/bin/sh
+APPDIR=/opt/paymo-widget /opt/paymo-widget/AppRun