# Maintainer: Winston Astrachan pkgname=1password pkgver=0.8.7.26947 pkgrel=3 _appimagver=0.8.7-1 _appimage="${pkgname}-${pkgver}.AppImage" pkgdesc="The world's most-loved password manager - read-only development preview" arch=('x86_64') url='https://1password.com/' license=('unknown') depends=('fuse2' 'zlib' 'hicolor-icon-theme') options=(!strip) source=("${_appimage}::https://onepassword.s3.amazonaws.com/linux/appimage/1password-${_appimagver}.AppImage" "${_appimage}.sig::https://onepassword.s3.amazonaws.com/linux/appimage/1password-${_appimagver}.AppImage.sig" ) noextract=("${_appimage}") sha256sums=('e98de64e42a25172569c7303b253450c831fe011eb1e7a7152b770ef0caae224' 'SKIP' ) 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}" }