updated on Sun Jan 22 16:00:49 UTC 2012
[aur-mirror.git] / mudlet / PKGBUILD
blob49532d87ff6707282447d3564837267a901a89ea
1 # Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
2 # Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
4 pkgname=mudlet
5 pkgver=1.1.1
6 pkgrel=1
7 pkgdesc="A modern MUD client with a graphical user inteface and built in Lua scripting"
8 arch=('i686' 'x86_64')
9 url="http://sourceforge.net/projects/mudlet/"
10 license=('GPL')
11 depends=('lua' 'qscintilla' 'qt')
12 makedepends=('cmake')
13 source=(http://downloads.sourceforge.net/project/$pkgname/$pkgname-$pkgver-src.tar.gz)
14 md5sums=('0710ec2c9c146633ef8b659a1183b612')
16 build() {
17   cd ${srcdir}/${pkgname}
19   cmake -DCMAKE_INSTALL_PREFIX=/usr .
20   make || return 1
21   make DESTDIR=${pkgdir} install
23 #remove from bad location
24   rm ${pkgdir}/usr/bin/{LuaGlobal.lua,mudlet_documentation.html} || return 1
26 #copy to correct location
27   cp -Rv ${pkgdir}/usr/local/* ${pkgdir}/usr || return 1
28   rm -rf ${pkgdir}/usr/local || return 1
30 #.desktop file and icon
31   install -D -m644 ${srcdir}/${pkgname}/${pkgname}.desktop \
32     ${pkgdir}/usr/share/applications/${pkgname}.desktop || return 1
33   install -D -m644 ${srcdir}/${pkgname}/${pkgname}.png \
34     ${pkgdir}/usr/share/pixmaps/${pkgname}.png || return 1