summaryrefslogtreecommitdiff
path: root/pcr/gpaint/PKGBUILD
blob: 26fa57d8c5a9a981de35968432feb2d84d0f997e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Maintainer (Arch): Brian Bidulock <bidulock@openss7.org>
# Contributor (Arch): Alexander Rødseth <rodseth@gmail.com>
# Contributor (Arch): Daniel J Griffiths <ghost1227@archlinux.us>
# Contributor (Arch): Allan McRae <allan@archlinux.org>
# Contributor (Arch): Stefan Husmann <stefan-husmann@t-online.de>
# Contributor (Arch): Aaditya Bagga <aaditya_gnulinux@zoho.com>

pkgname=gpaint
pkgver=0.3.3
pkgrel=12
pkgdesc="A small easy-to-use paint program for the GNOME Desktop"
arch=('x86_64' 'i686')
license=('GPL')
depends=('libglade' 'gdk-pixbuf2')
url="http://savannah.gnu.org/projects/gpaint/"
source=("ftp://alpha.gnu.org/gnu/$pkgname/$pkgname-2-$pkgver.tar.gz"
        'fill.patch::https://savannah.gnu.org/patch/download.php?file_id=19341' 
        "$pkgname.desktop")
sha256sums=('541706460610c8bd917225a0370762b66e378e756afa780e67677eeb0a2dd0eb'
            'd8600339f2a53e21c46e150e29817f1f999d8963859712d2f988b38687ebb2a5'
            'c4ccd43e1343befa8cfcca0e644fd2268315b328277346ebf236260e467d62cd')

prepare() {
  cd "$pkgname-2-$pkgver"
  sed -i 's#GTK_RESPONSE_DISCARD#GTK_RESPONSE_NO#' src/drawing.c
  patch -p1 -i $srcdir/fill.patch
}

build() {
  cd "$pkgname-2-$pkgver"
  ./configure --prefix=/usr
  make LDFLAGS+="-lm"
}

package() {
  cd "$pkgname-2-$pkgver"

  make DESTDIR="$pkgdir" install
  install -Dm755 "$pkgdir/usr/bin/$pkgname-2" "$pkgdir/usr/bin/$pkgname"
  rm "$pkgdir/usr/bin/$pkgname-2" 
  install -Dm644 "$srcdir/$pkgname.desktop" \
    "$pkgdir/usr/share/applications/$pkgname.desktop"
}

# vim:set ts=2 sw=2 et: