diff options
author | root <root@rshg054.dnsready.net> | 2012-01-20 23:14:48 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-01-20 23:14:48 +0000 |
commit | a1922d0ec660fdc1892f2783515f781c090df0a9 (patch) | |
tree | 6d38a09231ff439c051261d41bfa066870e1fccb /community-staging/grafx2 | |
parent | eefecc8813e0c062a2058b33209cb30830f824b6 (diff) |
Fri Jan 20 23:14:48 UTC 2012
Diffstat (limited to 'community-staging/grafx2')
-rw-r--r-- | community-staging/grafx2/PKGBUILD | 43 | ||||
-rw-r--r-- | community-staging/grafx2/grafx2.desktop | 12 | ||||
-rw-r--r-- | community-staging/grafx2/grafx2.install | 16 |
3 files changed, 71 insertions, 0 deletions
diff --git a/community-staging/grafx2/PKGBUILD b/community-staging/grafx2/PKGBUILD new file mode 100644 index 000000000..c885baea2 --- /dev/null +++ b/community-staging/grafx2/PKGBUILD @@ -0,0 +1,43 @@ +# $Id: PKGBUILD 62301 2012-01-19 07:23:27Z arodseth $ +# Maintainer: Alexander Rødseth <rodseth@gmail.com> +# Contributor: Simon Parzer <simon.parzer@gmail.com> +pkgname=grafx2 +pkgver=2.3 +pkgrel=3 +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" + "grafx2.desktop") +md5sums=('916a35c4762e85b4210a1041fbbfd830' + '9b3ecb5c2d44b987d65257184f46e6c4') + +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-staging/grafx2/grafx2.desktop b/community-staging/grafx2/grafx2.desktop new file mode 100644 index 000000000..d58bc5ed3 --- /dev/null +++ b/community-staging/grafx2/grafx2.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +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 diff --git a/community-staging/grafx2/grafx2.install b/community-staging/grafx2/grafx2.install new file mode 100644 index 000000000..12589796c --- /dev/null +++ b/community-staging/grafx2/grafx2.install @@ -0,0 +1,16 @@ +pkgname=grafx2 + +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: |