2 # Maintainer: Pieter van der Kloet <pvdkloet@gmail.com>
6 pkgdesc="OpenMW is a open-source engine reimplementation for the role-playing game Morrowind."
8 url="http://www.openmw.org"
11 depends=('openal' 'ogre' 'bullet' 'ffmpeg' 'mygui' 'mpg123' 'libsndfile' 'qt')
13 makedepends=('cmake' 'boost')
14 install=$pkgname.install
16 source=('http://openmw.googlecode.com/files/openmw-0.11.1-source.tar.bz2')
17 md5sums=('de51f60c394bb7316eed6ff6ee3894cc')
19 conflicts=('openmw-git')
22 cd "$srcdir"/openmw-"$pkgver"-source
23 cmake -DCMAKE_INSTALL_PREFIX=/usr
28 # There is currently no make install so we do this manually
31 install -d -m755 "$pkgdir"/usr/bin
32 install -m755 openmw "$pkgdir"/usr/bin/
33 install -m755 omwlauncher "$pkgdir"/usr/bin/
34 install -m755 esmtool "$pkgdir"/usr/bin/
37 # Replace resources location
38 sed -i 's,resources=resources,resources=/usr/share/openmw/resources,' openmw.cfg.install || exit 1
40 install -d -m755 "$pkgdir"/etc/openmw
41 install -m644 openmw.cfg.install "$pkgdir"/etc/openmw/openmw.cfg
42 install -m644 plugins.cfg "$pkgdir"/etc/openmw/
45 install -m644 launcher.qss "$pkgdir"/etc/openmw/
46 ln -s -T /etc/openmw/launcher.qss "$pkgdir"/usr/bin/launcher.qss || exit 1
48 # Desktop file and icon
49 install -d -m755 "$pkgdir"/usr/share/applications
50 install -m644 files/openmw.desktop "$pkgdir"/usr/share/applications/
52 install -d -m755 "$pkgdir"/usr/share/pixmaps
53 install -m644 apps/launcher/resources/images/openmw.png "$pkgdir"/usr/share/pixmaps/
56 install -d -m755 "$pkgdir"/usr/share/openmw
57 cp -r resources "$pkgdir"/usr/share/openmw/ || exit 1