From de0b76e9e8027c647fed256485f223dab63d6907 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Fri, 12 Jun 2015 23:10:56 -0300 Subject: gpaint: add new package to [pcr] --- pcr/gpaint/PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++ pcr/gpaint/gpaint.desktop | 11 +++++++++++ 2 files changed, 56 insertions(+) create mode 100644 pcr/gpaint/PKGBUILD create mode 100644 pcr/gpaint/gpaint.desktop (limited to 'pcr') diff --git a/pcr/gpaint/PKGBUILD b/pcr/gpaint/PKGBUILD new file mode 100644 index 000000000..26fa57d8c --- /dev/null +++ b/pcr/gpaint/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer (Arch): Brian Bidulock +# Contributor (Arch): Alexander Rødseth +# Contributor (Arch): Daniel J Griffiths +# Contributor (Arch): Allan McRae +# Contributor (Arch): Stefan Husmann +# Contributor (Arch): Aaditya Bagga + +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: diff --git a/pcr/gpaint/gpaint.desktop b/pcr/gpaint/gpaint.desktop new file mode 100644 index 000000000..844f5442d --- /dev/null +++ b/pcr/gpaint/gpaint.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Name=GNU Paint +Comment=A small-scale painting program for GNOME, the GNU Desktop +Comment[fr]=Un petit outil de dessin pour GNOME, le desktop GNU +Comment[pt_BR]=Um pequeno programa de desenho para o GNOME, o Desktop GNU +TryExec=gpaint +Exec=gpaint +Icon=gnome-logo-icon-transparent +Terminal=false +Type=Application +Categories=Graphics; -- cgit v1.2.3-54-g00ecf