updated on Wed Jan 18 04:00:29 UTC 2012
[aur-mirror.git] / guipdftk / PKGBUILD
blob50f898c10ec2993e54ebc2a580565e126b1bd738
1 # Maintainer: TuxSpirit<tuxspirit@archlinux.fr>
2 # Contributor: BlueCore  (for Lazarus compilation)
4 pkgname=guipdftk
5 pkgver=0.33
6 pkgrel=2
7 pkgdesc="GUI for PDFTK"
8 arch=(i686 x86_64)
9 license=('GPL')
10 install=(${pkgname}.install)
11 url="http://www.paehl.de/pdf/gui_pdftk.html"
12 depends=('gdk-pixbuf' 'pdftk')
13 makedepends=('lazarus' )
14 source=(http://www.paehl.de/pdf/downloads/linux_source.zip \
15         ${pkgname}.desktop \
16                 guipdftk.config)
17 md5sums=('9bdee03b0c1bc9c71468cdae0d5096ee'
18          '0d4df8e390030d63e0f3adf2b234ed81'
19                  '2a4b26260ce1651934b15eaf5a82d57f')
20 options=(!emptydirs)
22 build() {
23   
24   cd ${srcdir}
25   tar xzvf linux_source.tar.gz
26   sed '/TargetProcessor/d' project1.lpi > tmp
27   mv tmp project1.lpi
28   lazbuild project1.lpi
30   #Program
31   install -D -m 755 ${srcdir}/guipdftk ${pkgdir}/usr/bin/guipdftk
32   install -D -m 644 ${srcdir}/guipdftk.config ${pkgdir}/usr/bin/guipdftk.config
34   #AddOn Desktop
35   install -D -m 644 ${srcdir}/${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop
38 post-install() {
39   echo "lazarus isn't needed by this package anymore"
40   echo "pacman -Rs lazarus to uninstall"