diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-06-12 23:10:56 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-06-12 23:10:56 -0300 |
commit | de0b76e9e8027c647fed256485f223dab63d6907 (patch) | |
tree | e8d77f471eb7188dab2584f3bf77e705c43e6c10 | |
parent | d3a1d36e6cb778b8989718bb01c2ade5be494613 (diff) |
gpaint: add new package to [pcr]
-rw-r--r-- | pcr/gpaint/PKGBUILD | 45 | ||||
-rw-r--r-- | pcr/gpaint/gpaint.desktop | 11 |
2 files changed, 56 insertions, 0 deletions
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 <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: 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; |