# Maintainer: Jay Ta'ala # Contributor: Claudio d'Angelis pkgname=postman-bin pkgver=9.0.3 pkgrel=1 pkgdesc="Build, test, and document your APIs faster" provides=('postman') conflicts=('postman') arch=('x86_64') url="https://www.getpostman.com" options=(!strip) license=('custom') source=( "Postman-linux-x64-${pkgver}.tar.gz::https://dl.pstmn.io/download/version/${pkgver}/linux64" "postman.desktop" ) depends=(libxss nss gtk3) sha256sums=('b3c104d82c8daa46430963c58f3038b875048c5848e31af6b12b4f25a3f74681' '74b2d8570658e207e31f729e7f4768952252383aee7c695218d077bd0ef13245') package() { # Creating needed directories install -d "${pkgdir}/usr/bin" install -d "${pkgdir}/opt" install -d "${pkgdir}/usr/share/icons/hicolor/128x128/apps" install -d "${pkgdir}/usr/share/applications" # Program cp -r "${srcdir}/Postman" "${pkgdir}/opt/postman" -R ln -s "/opt/postman/Postman" "${pkgdir}/usr/bin/postman" # Desktop file install -m644 "${srcdir}/postman.desktop" "${pkgdir}/usr/share/applications/" # Icon ln -s "/opt/postman/app/resources/app/assets/icon.png" \ "${pkgdir}/usr/share/icons/hicolor/128x128/apps/postman.png" }