Skip to content

Instantly share code, notes, and snippets.

@hv15 hv15/PKGBUILD
Created Jan 21, 2016

Embed
What would you like to do?
pdfedit-bin: Fixed gsfonts location
post_install() {
# PDFEdit makes use of xpdf source, which uses the fonts found in the gsfonts
# package. xpdf reads the fonts from /usr/share/ghostscript/fonts - this fails
# on ArchLinux as the fonts are installed at /usr/share/fonts/Type1. Solution
# based on https://bugs.archlinux.org/task/3733: we create a symbolic link.
[ ! -d /usr/share/ghostscript/fonts ] && ln -s /usr/share/fonts/Type1 \
/usr/share/ghostscript/fonts
}
post_remove() {
[ -L /usr/share/ghostscript/fonts ] && rm /usr/share/ghostscript/fonts
}
# vim:set ts=2 sw=2 ft=sh et:
# Submitter: McNoggins < gagnon88 at gmail >
pkgname=pdfedit-bin
pkgver=0.4.5
_debpkgrel=1
pkgrel=4
pkgdesc="Full featured editor for manipulating PDF documents (built from Debian binaries)"
url="http://pdfedit.petricek.net/"
arch=('i686' 'x86_64')
license=('GPL')
depends=('qt3' 't1lib' 'gsfonts' 'zlib')
provides=('pdfedit')
conflicts=('pdfedit')
install='pdfedit-bin.install'
if [[ $CARCH == i686 ]]; then
_debarch=i386
sha256sums=('f85f26e213f3d056ccffdf80b9fe2fc1161258b64f745b212003af079f129be4')
else
_debarch=amd64
sha256sums=('bc30c4f0727c826851b18879e1c720c62401d8808ec28460bbdd33400fe2c37b')
fi
source=(http://ftp.us.debian.org/debian/pool/main/p/pdfedit/pdfedit_${pkgver}-${_debpkgrel}_${_debarch}.deb)
package() {
tar -xf data.tar.?z -C "$pkgdir" ./usr
}
# vim:set ts=2 sw=2 ft=sh et:
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.