summaryrefslogtreecommitdiff
path: root/community/tiled-qt
diff options
context:
space:
mode:
Diffstat (limited to 'community/tiled-qt')
-rw-r--r--community/tiled-qt/PKGBUILD41
-rw-r--r--community/tiled-qt/tiled-qt.install11
-rwxr-xr-xcommunity/tiled-qt/tiled.desktop10
3 files changed, 62 insertions, 0 deletions
diff --git a/community/tiled-qt/PKGBUILD b/community/tiled-qt/PKGBUILD
new file mode 100644
index 000000000..d79724165
--- /dev/null
+++ b/community/tiled-qt/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase>
+# Collaborator: Jonathan Fine (were.Vire AT gmail DOT com)
+pkgname=tiled-qt
+pkgver=0.8.1
+pkgrel=1
+pkgdesc='A general purpose tile map editor, built to be flexible and easy to use'
+arch=('i686' 'x86_64')
+url='http://mapeditor.org'
+license=('GPL')
+depends=('qt' 'libgl' 'gtk-update-icon-cache')
+makedepends=('mesa')
+install=${pkgname}.install
+source=(http://sourceforge.net/projects/tiled/files/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz
+ tiled.desktop)
+md5sums=('2a8b42e5b956562a184ab0f2b926cac7'
+ '3c44178b349de1c1a5f56b08d229c2f4')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+ qmake -r PREFIX=/usr
+ make
+}
+
+package() {
+ cd $srcdir
+ install -D -m 644 tiled.desktop "$pkgdir/usr/share/applications/tiled.desktop"
+
+ cd $pkgname-$pkgver
+
+ make install INSTALL_ROOT=$pkgdir
+
+ install -D -m 644 "src/tiled/images/tiled-icon-16.png" "$pkgdir/usr/share/icons/hicolor/16x16/apps/tiled-icon.png"
+ install -D -m 644 "src/tiled/images/tiled-icon-32.png" "$pkgdir/usr/share/icons/hicolor/32x32/apps/tiled-icon.png"
+ install -D -m 644 "src/tiled/images/tiled-icon.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/tiled-icon.svg"
+
+ cd src/libtiled
+ for i in *.h
+ do
+ install -D -m 644 $i "$pkgdir/usr/include/libtiled/$i"
+ done
+}
diff --git a/community/tiled-qt/tiled-qt.install b/community/tiled-qt/tiled-qt.install
new file mode 100644
index 000000000..71d138f2d
--- /dev/null
+++ b/community/tiled-qt/tiled-qt.install
@@ -0,0 +1,11 @@
+post_install() {
+ gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
diff --git a/community/tiled-qt/tiled.desktop b/community/tiled-qt/tiled.desktop
new file mode 100755
index 000000000..05a02fa58
--- /dev/null
+++ b/community/tiled-qt/tiled.desktop
@@ -0,0 +1,10 @@
+#!/usr/bin/env xdg-open
+[Desktop Entry]
+Name=Tiled
+Comment=Edit Video Game Tile Maps
+GenericName=Tiled
+Exec=tiled
+Terminal=false
+Type=Application
+Icon=tiled-icon
+Categories=Application;Qt;Games;Development;