# Maintainer Jonne Haß pkgname=workflowy pkgver=4.0.2305181454 pkgrel=1 pkgdesc="Desktop app for workflowy.com, a note taking tool based on lists" arch=('x86_64') url="https://workflowy.com" license=('custom') depends=('fuse2') _filename="$pkgname-$pkgver.AppImage" _downloadname="WorkFlowy-x86_64.AppImage" options=('!strip') source=("$_filename::https://github.com/workflowy/desktop/releases/download/v${pkgver/_/-}/$_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/$_downloadname|" squashfs-root/workflowy.desktop } package() { cd "$srcdir/" install -Dm755 $_filename "$pkgdir/opt/$_downloadname" install -Dm644 squashfs-root/workflowy.desktop "$pkgdir/usr/share/applications/workflowy.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=('3fe5a405a5a5ccf920f43d8fc0854b1aeeb7d759a5e4f6f8c07ced5b7f0249e5')