# Maintainer: Caltlgin Stsodaat _pkgname='Insomnia-Designer' pkgname="${_pkgname,,}-bin" pkgver=2020.5.2 pkgrel=2 pkgdesc='Collaborative API Design Tool for designing, testing and managing OpenAPI specifications' arch=('x86_64') url='https://insomnia.rest' _url_source='https://github.com/Kong/insomnia' license=('MIT') depends=('libappindicator-gtk3' 'libnotify' 'libsecret' 'libxss' 'libxslt' 'nss' 'xdg-utils') provides=("${_pkgname,,}") conflicts=("${_pkgname,,}") source=("${_url_source}/releases/download/designer@${pkgver}/${_pkgname/-/.}-${pkgver}.deb" "${_pkgname}-${pkgver}-license::${_url_source}/raw/designer@${pkgver}/LICENSE") sha256sums=('dae88f0743da3890e7af431360d10b1251fa112d57d1f3e336870db2761dc47b' 'cc91b5641bbbf592a69ca5f7b45807efba470068e815fc7682a42022bbd3cbb9') package() { tar -xvf 'data.tar.xz' -C "${pkgdir}" rm -rf "${pkgdir}/usr/share/doc" install -dv "${pkgdir}/usr/bin" ln -sfv "/opt/${_pkgname/-/ }/${_pkgname,,}" -t "${pkgdir}/usr/bin" install -Dvm644 "${pkgdir}/opt/${_pkgname/-/ }/"{'LICENSE.electron.txt','LICENSES.chromium.html'} \ -t "${pkgdir}/usr/share/licenses/${_pkgname,,}" install -Dvm644 "${_pkgname}-${pkgver}-license" "${pkgdir}/usr/share/licenses/${_pkgname,,}/LICENSE" } # vim: ts=2 sw=2 et: