Skip to content

Instantly share code, notes, and snippets.

@simonbcn simonbcn/PKGBUILD Secret
Last active May 25, 2020

Embed
What would you like to do?
PKGBUILD of masterpdfeditor5 with libs
pkgname=masterpdfeditor-libs
_pkgname=master-pdf-editor-5
pkgver=5.4.38
pkgrel=1
pkgdesc='A complete solution for creation and editing PDF files (with libs included)'
url='https://code-industry.net/free-pdf-editor/'
arch=('x86_64')
provides=('masterpdfeditor')
license=('custom')
makedepends=('patchelf')
depends=('gcc-libs' 'glibc' 'libgl' 'nspr' 'nss' 'sane')
source=("https://code-industry.net/public/master-pdf-editor-${pkgver}-qt5-all.amd64.tar.gz")
sha256sums=('6bed7a70d4dcaddebf04bdc692ffe123cf89f909630f66cf4de19d6d56835cd0')
package() {
install -d "$pkgdir"{/opt/,/usr/bin/}
cp -a --no-preserve=ownership ${_pkgname} "$pkgdir/opt/"
cd "$pkgdir/opt/${_pkgname}"
cat <<EOF >"$pkgdir/usr/bin/masterpdfeditor5"
#!/bin/sh
exec /opt/master-pdf-editor-5/masterpdfeditor5.sh
EOF
chmod +x "$pkgdir/usr/bin/masterpdfeditor5"
install -Dm644 masterpdfeditor5.desktop -t "$pkgdir/usr/share/applications/"
install -Dm644 license.txt -t "$pkgdir/usr/share/licenses/$pkgname/"
patchelf --remove-rpath masterpdfeditor5
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.