updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / fontpage / PKGBUILD
blobb39bfe6aeaa7beb6ce303fbb1cdf132d4bf0db18
1 # Maintainer: yugrotavele <yugrotavele at archlinux dot us>
2 # Contributor: K. Piche <kpiche@rogers.com>
4 pkgname=fontpage
5 pkgver=3.0
6 pkgrel=1
7 pkgdesc="A font viewer and graphic utility, view system fonts, install fonts"
8 arch=(any)
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
12         FONTpage.desktop)
13 license=('GPL3')
14 depends=('fontconfig' 'pygtk' 'python-imaging')
15 md5sums=('1a4c6aa7862b458ea83eab6c5715e7af'
16          'e5453492083490800ce9de083de5c090'
17          '4ce1811b4414c206040b0263ce6e261f')
19 build () {
20 cd "$srcdir/$pkgname-$pkgver.src"
21   # python2 fix
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
25   done
28 package () {
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"