# Maintainer: hotfloppy pkgname=breaktimer-appimage pkgver=1.2.0 pkgrel=1 pkgdesc="Save yourself from RSI and eye-strain." arch=('x86_64') url="https://breaktimer.app/" license=('GPLv3') provides=('breaktimer') conflicts=('breaktimer-bin') source=("https://github.com/tom-james-watson/breaktimer-app/releases/download/v$pkgver/BreakTimer.AppImage") sha256sums=('6e9739109ff919df74f0eafe03bc2387350aded69401c6f113af5f994198157b') options=(!strip) _filename=BreakTimer.AppImage package() { chmod +x $_filename ./$_filename --appimage-extract INSTALL_PATH="/opt/appimages/${_filename}" sed -i -E "s|Exec=AppRun|Exec=${INSTALL_PATH}|" squashfs-root/breaktimer.desktop # install icons install -dm755 "$pkgdir/usr/share/icons" cp -dpr --no-preserve=ownership "squashfs-root/usr/share/icons" "$pkgdir/usr/share" chmod -R 755 "$pkgdir/usr/share/icons" find "$pkgdir/usr/share/icons" -type f -name "breaktimer.png" -exec chmod 644 {} \; # install .desktop file and image file install -Dm644 "squashfs-root/breaktimer.desktop" "$pkgdir/usr/share/applications/breaktimer.desktop" install -Dm755 "$_filename" "$pkgdir$INSTALL_PATH" # disable AppImage integration prompt # https://github.com/electron-userland/electron-builder/issues/1962 install -dm755 "$pkgdir/usr/share/appimagekit" touch "$pkgdir/usr/share/appimagekit/no_desktopintegration" chmod 644 "$pkgdir/usr/share/appimagekit/no_desktopintegration" }