summaryrefslogtreecommitdiff
path: root/community/tiled-qt/PKGBUILD
blob: d79724165240d442c525743eb197e3646978fa0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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
}