# Maintainer: Marek "foxie" Brenčič # Contributor: Radoslaw Mejer pkgname=stoplight-studio-appimage pkgver=2.2.0 _realver=2.2.0-stable.5288.8bf0d2e pkgrel=1 pkgdesc="The modern editor for API Architects and Technical Writers." arch=('x86_64') url='https://stoplight.io/studio/' license=('custom') depends=('fuse2') source=( "stoplight-studio-linux-x86_64-${_realver}.AppImage::https://github.com/stoplightio/studio/releases/download/v${_realver}/stoplight-studio-linux-x86_64.AppImage" "stoplight-studio.desktop" ) sha256sums=( "a7a1c2e5669a9c47e8e5ac425d90998a93feb303ef6dc5fd8b94a4213cbb83a8" "5a45f03ec544bfdf2c75391a68d29302e7f721348ba530a8f365697c799f84a2" ) options=(!strip) _filename="./stoplight-studio-linux-${arch}-${_realver}.AppImage" prepare() { cd "${srcdir}" chmod +x ${_filename} ${_filename} --appimage-extract } package() { install -Dm755 "${srcdir}/${_filename}" "${pkgdir}/opt/appimages/stoplight-studio.AppImage" install -dm755 "${pkgdir}/usr/share/" cp -r --no-preserve=mode,ownership "${srcdir}/squashfs-root/usr/share/icons" "${pkgdir}/usr/share/" install -Dm644 "${srcdir}/stoplight-studio.desktop" "${pkgdir}/usr/share/applications/stoplight-studio.desktop" }