updated on Wed Jan 11 16:09:51 UTC 2012
[aur-mirror.git] / gpaint / PKGBUILD
blobb3f307955e81680d870635f981af9dc6d5fb6a9c
1 # Maintainer: Alexander Rødseth <rodseth@gmail.com>
2 # Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
3 # Contributor: Allan McRae <allan@archlinux.org>
4 pkgname=gpaint
5 pkgver=0.3.3
6 pkgrel=5
7 pkgdesc="Paintbrush clone for Gnome"
8 arch=('x86_64' 'i686')
9 license=('GPL')
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')
15 build() {
16   cd ${pkgname}-2-${pkgver}
17   sed -i "s#GTK_RESPONSE_DISCARD#GTK_RESPONSE_NO#" src/drawing.c
19   ./configure --prefix=/usr
20   make
23 package() {
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: