PKGBUILDs/community/pdfedit/PKGBUILD

35 lines
1.2 KiB
Bash
Raw Normal View History

2009-10-10 02:15:33 +00:00
# $Id: PKGBUILD 2374 2009-09-17 06:00:56Z dgriffiths $
# Maintainer: Firmicus <firmicus α gmx δ net>
# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>
pkgname=pdfedit
pkgver=0.4.3
pkgrel=1
pkgdesc="Full featured editor for manipulating PDF documents"
arch=('i686' 'x86_64')
url="http://pdfedit.petricek.net/index_e.html"
license=('GPL')
depends=('qt3' 't1lib' 'gsfonts')
makedepends=('boost' 'doxygen')
source=(http://downloads.sourceforge.net/pdfedit/$pkgname-$pkgver.tar.bz2
'pdfedit.png' 'pdfedit.desktop')
md5sums=('98eb8d8d42027241c10a5c9bedacc20e'
'70fd938b2ef9da748a093df7e20d1d7d'
'c0572c2dd54065322321718aa49ed6b8')
build() {
. /etc/profile.d/qt3.sh
export PATH=$QTDIR/bin:$PATH
export QMAKESPEC=$QTDIR/mkspecs/linux-g++
cd $srcdir/$pkgname-$pkgver
sed -i 's:/usr/share/fonts/type1/gsfonts:/usr/share/fonts/Type1:' src/xpdf/xpdf/GlobalParams.cc || return 1
./configure --prefix=/usr --with-qmake=/opt/qt/bin/qmake
make || return 1
make INSTALL_ROOT=$pkgdir install
install -D -m644 ../pdfedit.desktop $pkgdir/usr/share/applications/pdfedit.desktop
install -D -m644 ../pdfedit.png $pkgdir/usr/share/pixmaps/pdfedit.png
}