1 # Maintainer: Alexander Rødseth <rodseth@gmail.com>
2 # Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
3 # Contributor: Allan McRae <allan@archlinux.org>
7 pkgdesc="Paintbrush clone for Gnome"
10 url="http://www.gnu.org/software/gpaint/"
11 depends=('libgnomeprintui')
12 source=(ftp://alpha.gnu.org/gnu/$pkgname/${pkgname}-2-${pkgver}.tar.gz)
13 md5sums=('037cc283d2cdd806dbdc462839bb3b72')
16 cd ${pkgname}-2-${pkgver}
17 sed -i "s#GTK_RESPONSE_DISCARD#GTK_RESPONSE_NO#" src/drawing.c
19 ./configure --prefix=/usr
24 cd ${pkgname}-2-${pkgver}
26 make DESTDIR=${pkgdir} install
27 mv "$pkgdir/usr/bin/gpaint-2" "$pkgdir/usr/bin/gpaint"
28 mkdir -p ${pkgdir}/usr/share/applications
29 install -m644 ${srcdir}/${pkgname}-2-${pkgver}/gpaint.desktop \
30 ${pkgdir}/usr/share/applications
31 echo "Categories=Graphics;" >> ${pkgdir}/usr/share/applications/gpaint.desktop
32 sed -i 's:Terminal=0:Terminal=false:' \
33 "$pkgdir/usr/share/applications/gpaint.desktop"
34 sed -i 's:gpaint-2:gpaint:' \
35 "$pkgdir/usr/share/applications/gpaint.desktop"
36 install -Dm644 COPYING \
37 "$pkgdir/usr/share/licenses/$pkgname/COPYING"
40 # vim:set ts=2 sw=2 et: