updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / boxer / PKGBUILD
blob800834d3c2c616cfc64e900803dd0c6bc33fb72f
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 pkgname=boxer
4 pkgver=0.3.2
5 pkgrel=1
6 pkgdesc="A graphical user interface for the Box vector graphics language"
7 arch=('any')
8 url="http://boxc.sourceforge.net"
9 license=('GPL')
10 depends=('box' 'pygtk')
11 provides=('box-gui')
12 conflicts=('box-gui')
13 replaces=('box-gui')
14 install="$pkgname.install"
15 source=("http://switch.dl.sourceforge.net/project/boxc/Boxer%20-%20the%20Box%20GUI/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz"
16         "http://boxc.sourceforge.net/_images/box-logo.png"
17         "$pkgname.desktop")
18 md5sums=('aec57ba2d93e96c3cd48e53bc7e50cec'
19          '2ad95dafb22037b74cac8c4736c73674'
20          '350cf47d8ed7851efa2001fea086ca89')
22 build() {
23   cd "$srcdir/$pkgname-$pkgver"
25   python2 setup.py build
28 package() {
29   cd "$srcdir/$pkgname-$pkgver"
31   python2 setup.py install --root="$pkgdir/"
33   # desktop file and pixmaps
34   install -Dm644 ../$pkgname.desktop \
35                  "$pkgdir/usr/share/applications/$pkgname.desktop"
36   install -Dm644 ../box-logo.png \
37                  "$pkgdir/usr/share/pixmaps/$pkgname.png"
39   # python2 fix
40   sed -i "s|\(env python\).*|\12|" `grep -rl "env python" "$pkgdir"`
43 # vim:set ts=2 sw=2 et: