summaryrefslogtreecommitdiff
path: root/community/grafx2
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-10-18 23:14:49 +0000
committerroot <root@rshg054.dnsready.net>2011-10-18 23:14:49 +0000
commit791dde5091677cd6370690f9df9fb7cbdcfe0968 (patch)
tree44b8403e7782995a56c22f0fdacd13b227667bb1 /community/grafx2
parentc4f201fd7208805c7ee00e0ee833d3cc505898ac (diff)
Tue Oct 18 23:14:48 UTC 2011
Diffstat (limited to 'community/grafx2')
-rw-r--r--community/grafx2/PKGBUILD43
-rw-r--r--community/grafx2/grafx2.desktop11
-rw-r--r--community/grafx2/grafx2.install14
3 files changed, 68 insertions, 0 deletions
diff --git a/community/grafx2/PKGBUILD b/community/grafx2/PKGBUILD
new file mode 100644
index 000000000..0eb3d0696
--- /dev/null
+++ b/community/grafx2/PKGBUILD
@@ -0,0 +1,43 @@
+# $Id$
+# 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)"
+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")
+md5sums=('916a35c4762e85b4210a1041fbbfd830'
+ '73d1cb00b7529de5cbab5c8f00640fbc')
+
+build() {
+ cd "${srcdir}/${pkgname}/src"
+
+ msg2 "Compiling..."
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}/src"
+
+ msg2 "Packaging files..."
+ make prefix="/usr" DESTDIR="${pkgdir}" install
+ msg2 "Packaging shortcut..."
+ 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"
+ msg2 "Packaging 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
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/community/grafx2/grafx2.desktop b/community/grafx2/grafx2.desktop
new file mode 100644
index 000000000..fcd6e71fb
--- /dev/null
+++ b/community/grafx2/grafx2.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Encoding=UTF-8
+GenericName=GrafX2
+Name=GrafX2
+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;
diff --git a/community/grafx2/grafx2.install b/community/grafx2/grafx2.install
new file mode 100644
index 000000000..ef816a666
--- /dev/null
+++ b/community/grafx2/grafx2.install
@@ -0,0 +1,14 @@
+post_upgrade() {
+ gtk-update-icon-cache -q -f -t /usr/share/icons/hicolor
+ update-desktop-database -q
+}
+
+post_install() {
+ post_upgrade
+}
+
+post_remove() {
+ post_upgrade
+}
+
+# vim:set ts=2 sw=2 et: