pkgname=1password _appimagver=0.9.5-2 _appimage="${pkgname}-${_appimagver}.AppImage" pkgver=${_appimagver//-/_} pkgrel=1 pkgdesc="Password manager and secure wallet" arch=('x86_64') url='https://1password.com/' license=('LicenseRef-1Password-Proprietary') depends=('fuse2' 'zlib' 'hicolor-icon-theme') options=(!strip) source=("${_appimage}::https://downloads.1password.com/linux/appimage/${_appimage}" "${_appimage}.sig::https://downloads.1password.com/linux/appimage/${_appimage}.sig" ) noextract=("${_appimage}") sha256sums=('1c1bd68aadc4b7f4340fa16c12b1db3cfcc462ed6c3ac54cffb66757967a48ba' '3223bfc3219c00729a69ee33b6aeb925c545337d5336e70a757bc8ce162814b0' ) validpgpkeys=('3FEF9748469ADBE15DA7CA80AC2D62742012EA22') prepare() { chmod +x "${_appimage}" ./"${_appimage}" --appimage-extract } package() { cd "$srcdir" # Create Directories install -d "${pkgdir}/usr/bin" install -dm755 "${pkgdir}/usr/share/icons/hicolor" # Install AppImage install -Dm755 "${_appimage}" -t "${pkgdir}/opt/${pkgname}" # Install Icons, Desktop Shortcut find squashfs-root -type d -exec chmod 0755 {} \; cp -r squashfs-root/usr/share/icons/hicolor "${pkgdir}/usr/share/icons/" sed -i -E "s|Exec=AppRun|Exec=env DESKTOPINTEGRATION=false /usr/bin/${pkgname}|" "squashfs-root/${pkgname}.desktop" install -Dm644 "squashfs-root/${pkgname}.desktop" -t "${pkgdir}/usr/share/applications/" # Symlink AppImage ln -s "/opt/${pkgname}/${_appimage}" "${pkgdir}/usr/bin/${pkgname}" }