updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / slade / PKGBUILD
blob97331340e21a82bc1a6ab15753b7fb86dda679c0
1 # Contributor: Jan Cholasta <grubber@grubber.cz>
3 pkgname=slade
4 pkgver=3.0.2
5 pkgrel=1
6 pkgdesc="SLADE3 Doom editor."
7 arch=('i686' 'x86_64')
8 url="http://slade.mancubus.net/"
9 license=('GPL')
10 depends=('bzip2' 'fluidsynth' 'freeimage' 'sfml' 'wxgtk-2.9' 'zlib')
11 makedepends=('cmake')
12 source=(http://slade.mancubus.net/files/${pkgname}_302_src.zip
13         $pkgname-$pkgver-cmake.patch
14         slade.desktop
15         slade.png)
16 md5sums=('4cce3c83292ea55044b7d385bb61a907'
17          '5ba0ea8add5a46e8e4fde601c3822fc5'
18          '2c7337f8f918009b8633f6650a583efd'
19          '85e440a64d8185fb903b1cec4f72c234')
21 build() {
22   patch -p1 <"$srcdir"/$pkgname-$pkgver-cmake.patch
24   cmake -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-2.9 -DwxWidgets_wxrc_EXECUTABLE=/usr/bin/wxrc-2.9 .
25   make
28 package() {
29   install -Dm755 slade "$pkgdir"/usr/bin/slade
30   install -Dm644 dist/slade.pk3 "$pkgdir"/usr/share/slade3/slade.pk3
32   install -Dm644 slade.desktop "$pkgdir"/usr/share/applications/slade.desktop
33   install -Dm644 slade.png "$pkgdir"/usr/share/pixmaps/slade.png