1 # Maintainer: yugrotavele <yugrotavele at archlinux dot us>
2 # Contributor: K. Piche <kpiche@rogers.com>
7 pkgdesc="A font viewer and graphic utility, view system fonts, install fonts"
9 url="http://www.absolutelinux.org/FONTpage.shtml"
10 source=(ftp://ftp.absolutelinux.org/programs/fontpage-$pkgver.src.tar.bz2
11 http://www.absolutelinux.org/images/FONTpage.png
14 depends=('fontconfig' 'pygtk' 'python-imaging')
15 md5sums=('1a4c6aa7862b458ea83eab6c5715e7af'
16 'e5453492083490800ce9de083de5c090'
17 '4ce1811b4414c206040b0263ce6e261f')
20 cd "$srcdir/$pkgname-$pkgver.src"
22 for file in $(find . -name '*.py' -print); do
23 sed -i 's_#!.*/usr/bin/python_#!/usr/bin/python2_' $file
24 sed -i 's_#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
29 cd "$srcdir/$pkgname-$pkgver.src"
30 install -D $pkgname.py "$pkgdir/usr/bin/$pkgname.py"
31 install -D -m644 "$startdir/FONTpage.desktop" "$pkgdir/usr/share/applications/FONTpage.desktop"
32 install -D -m644 "$startdir/FONTpage.png" "$pkgdir/usr/share/pixmaps/FONTpage.png"