summaryrefslogtreecommitdiff
path: root/community/grafx2
diff options
context:
space:
mode:
Diffstat (limited to 'community/grafx2')
-rw-r--r--community/grafx2/PKGBUILD30
-rw-r--r--community/grafx2/grafx2.desktop5
-rw-r--r--community/grafx2/grafx2.install2
3 files changed, 20 insertions, 17 deletions
diff --git a/community/grafx2/PKGBUILD b/community/grafx2/PKGBUILD
index 0eb3d0696..43da08b43 100644
--- a/community/grafx2/PKGBUILD
+++ b/community/grafx2/PKGBUILD
@@ -1,22 +1,22 @@
-# $Id$
+# $Id: PKGBUILD 57828 2011-11-03 10:14:39Z arodseth $
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Simon Parzer <simon.parzer@gmail.com>
pkgname=grafx2
pkgver=2.3
-pkgrel=1
-pkgdesc="Pixelart-oriented painting program (for pixling)"
+pkgrel=2
+pkgdesc="Pixelart-oriented painting program"
arch=('x86_64' 'i686')
url="http://code.google.com/p/grafx2/"
license=('GPL2')
install=grafx2.install
depends=('sdl_ttf' 'sdl_image' 'lua' 'desktop-file-utils')
-source=("http://grafx2.googlecode.com/files/${pkgname}-${pkgver}.1781-src.tgz"
- "${pkgname}.desktop")
+source=("http://grafx2.googlecode.com/files/$pkgname-$pkgver.1781-src.tgz"
+ "grafx2.desktop")
md5sums=('916a35c4762e85b4210a1041fbbfd830'
- '73d1cb00b7529de5cbab5c8f00640fbc')
+ '9b3ecb5c2d44b987d65257184f46e6c4')
build() {
- cd "${srcdir}/${pkgname}/src"
+ cd "$srcdir/$pkgname/src"
msg2 "Compiling..."
make
@@ -26,18 +26,18 @@ package() {
cd "${srcdir}/${pkgname}/src"
msg2 "Packaging files..."
- make prefix="/usr" DESTDIR="${pkgdir}" install
+ make prefix="/usr" DESTDIR="$pkgdir" install
msg2 "Packaging shortcut..."
- install -Dm644 "${srcdir}/${pkgname}.desktop" \
- "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+ install -Dm644 "$srcdir/$pkgname.desktop" \
+ "$pkgdir/usr/share/applications/$pkgname.desktop"
msg2 "Packaging documentation..."
- install -Dm644 "${srcdir}/${pkgname}/doc/README.txt" \
- "${pkgdir}/usr/share/doc/${pkgname}/readme.txt"
+ install -Dm644 "$srcdir/$pkgname/doc/README.txt" \
+ "$pkgdir/usr/share/doc/$pkgname/readme.txt"
msg2 "Packaging license..."
- install -Dm644 "${srcdir}/${pkgname}/doc/gpl-2.0.txt" \
- "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm644 "$srcdir/$pkgname/doc/gpl-2.0.txt" \
+ "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
msg2 "Cleaning up..."
- rmdir ${pkgdir}/usr/share/grafx2/scripts/libs
+ rmdir "$pkgdir/usr/share/grafx2/scripts/libs"
}
# vim:set ts=2 sw=2 et:
diff --git a/community/grafx2/grafx2.desktop b/community/grafx2/grafx2.desktop
index fcd6e71fb..d58bc5ed3 100644
--- a/community/grafx2/grafx2.desktop
+++ b/community/grafx2/grafx2.desktop
@@ -2,10 +2,11 @@
Encoding=UTF-8
GenericName=GrafX2
Name=GrafX2
+Comment=Pixelart-oriented painting program
Exec=grafx2 %U
TryExec=grafx2
Icon=grafx2
Terminal=false
Type=Application
-Categories=Graphics;2DGraphics;RasterGraphics;
-MimeType=image/bmp;image/gif;image/png;image/x-tga;image/tiff;
+Categories=Graphics;2DGraphics;RasterGraphics
+MimeType=image/bmp;image/gif;image/png;image/x-tga;image/tiff
diff --git a/community/grafx2/grafx2.install b/community/grafx2/grafx2.install
index ef816a666..12589796c 100644
--- a/community/grafx2/grafx2.install
+++ b/community/grafx2/grafx2.install
@@ -1,3 +1,5 @@
+pkgname=grafx2
+
post_upgrade() {
gtk-update-icon-cache -q -f -t /usr/share/icons/hicolor
update-desktop-database -q