Created
September 30, 2021 07:12
-
-
Save quangdinh/4191ae2c625ac36b398139c386e35937 to your computer and use it in GitHub Desktop.
AUR postman-bin PKGBUILD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Jay Ta'ala <[email protected]> | |
# Contributor: Claudio d'Angelis <claudiodangelis at gmail dot com> | |
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" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment