summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorXuanwo2020-04-17 16:33:26 +0800
committerXuanwo2020-04-17 16:33:26 +0800
commit3feea6dfe3971162a64d075f8f1cbf096db66c73 (patch)
tree279627c5712a062d139e689a9db4b5678d536c8a /PKGBUILD
downloadaur-3feea6dfe3971162a64d075f8f1cbf096db66c73.tar.gz
Add clickup 2.0.8
Signed-off-by: Xuanwo <xuanwo@archlinuxcn.org>
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..dddd2dcdf37
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer Xuanwo <xuanwo@archlinucn.org>
+pkgname=clickup
+pkgver=2.0.8
+pkgrel=1
+pkgdesc="Desktop app for clickup.com"
+arch=('x86_64')
+url="https://clickup.com"
+license=('custom')
+depends=('fuse2')
+_filename="$pkgname-desktop-$pkgver-x86_64.AppImage"
+_downloadname="$pkgname-desktop-$pkgver-linux.zip"
+options=('!strip')
+source=("https://attachments3.clickup.com/desktop/$_downloadname")
+
+prepare() {
+ cd "$srcdir"
+ rm -rf squashfs-root
+ chmod +x $_filename
+ ./$_filename --appimage-extract
+ sed -i -e "s|Exec=.\+|Exec=env APPIMAGELAUNCHER_DISABLE=1 DESKTOPINTEGRATION=0 /opt/$_filename|" squashfs-root/clickup-desktop.desktop
+}
+
+package() {
+ cd "$srcdir/"
+ install -Dm755 $_filename "$pkgdir/opt/$_filename"
+ install -Dm644 squashfs-root/clickup-desktop.desktop "$pkgdir/usr/share/applications/clickup.desktop"
+ install -dm755 "$pkgdir/usr/share/icons/hicolor"
+ cp -av squashfs-root/usr/share/icons/hicolor/* "$pkgdir/usr/share/icons/hicolor/"
+ chmod -R a+rX "$pkgdir/usr/share/icons/hicolor"
+}
+sha256sums=('8482aceb51345f21fb50db0c1e8353870376fd40ea991ef32ff44bb5556431a3')
+