diff options
author | Samuel Kogler | 2015-07-14 11:56:15 +0200 |
---|---|---|
committer | Samuel Kogler | 2015-07-14 12:41:10 +0200 |
commit | 85a61211727f0221b46f83c1e467ae9e213df1d4 (patch) | |
tree | 5a51a4edb5c29ff3b4503d04517a00895201a8fd /PKGBUILD | |
parent | 820cdd99cee7241b04911a588003ae39514b6efb (diff) | |
download | aur-85a61211727f0221b46f83c1e467ae9e213df1d4.tar.gz |
Rename package to simulationcraft
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 38 |
1 files changed, 20 insertions, 18 deletions
@@ -2,24 +2,26 @@ # Original maintainer: Martin Weinelt <mweinelt@gmail.com> # Contributor: Bjoern Bidar <theodorstormgrade@gmail.com> _gui=true -pkgbase=simcraft -pkgname=simcraft +pkgbase=simulationcraft +pkgname=simulationcraft _pkgname=simc _simver=620 _simrel=02 pkgver=${_simver}_${_simrel} pkgrel=1 -pkgdesc="SimulationCraft is a tool to explore combat mechanics in the popular MMO RPG World of Warcraft (tm)" +pkgdesc="A tool to explore combat mechanics in the popular MMO RPG World of Warcraft (tm). Multi-player event-driven simulator written in C++ that models raid damage." url="http://code.google.com/p/simulationcraft" arch=('i686' 'x86_64') license=('GPL3') +replaces=('simcraft' 'simcraft-data' 'simcraft-gui') +conflicts=('simcraft' 'simcraft-data' 'simcraft-gui' 'simulationcraft-git' 'simulationcraft-data-git' 'simulationcraft-gui-git') install=$pkgname.install source=("http://downloads.simulationcraft.org/$_pkgname-${_simver}-${_simrel}-source.zip" 'SimulationCraft.desktop' ) md5sums=('d1155ac12510ae0344d742ee86d8ba6d' - '527f78bab42ec0a524388da12e3ce9e0') + '59f2d428f6c7ad8a3eee1ca615a5982a') prepare() { @@ -29,8 +31,8 @@ prepare() if [ $_gui = true ] ; then #cd ${_pkgname}-${_simver}-${_simrel}-source sed -e 's|SOURCES|OBJECTS|' -e 's|\.cpp|\.o|' -i source_files/QT_engine{,_main}.pri - qmake INSTALLPATH=/usr/share/simcraft \ - SHAREDIR=/usr/share/simcraft \ + qmake INSTALLPATH=/usr/share/simulationcraft \ + SHAREDIR=/usr/share/simulationcraft \ PREFIX=/usr \ CONFIG+='to_install' \ simcqt.pro -o Makefile @@ -48,50 +50,50 @@ build() fi } -package_simcraft-data() +package_simulationcraft-data() { pkdesc+="data" arch="any" cd $srcdir/$_pkgname-${_simver}-${_simrel}-source for profile in $( find profiles -type f); do - install -Dm644 $profile "$pkgdir/usr/share/simcraft/$profile" + install -Dm644 $profile "$pkgdir/usr/share/simulationcraft/$profile" done for doc in Welcome.html Welcome.png readme.txt; do - install -Dm644 $doc $pkgdir/usr/share/doc/simcraft/$doc + install -Dm644 $doc $pkgdir/usr/share/doc/simulationcraft/$doc done } -package_simcraft() +package_simulationcraft() { - depends=( 'openssl' "simcraft-data=$pkgver" ) + depends=( 'openssl' "simulationcraft-data=$pkgver" ) cd $srcdir/$_pkgname-${_simver}-${_simrel}-source install -Dm755 engine/simc "$pkgdir/usr/bin/simc" } if [ $_gui = true ] ; then -package_simcraft-gui() +package_simulationcraft-gui() { pkgdesc+="gui" - depends=( 'qt5-base' 'qt5-webkit' "simcraft=$pkgver") + depends=( 'qt5-base' 'qt5-webkit' "simulationcraft=$pkgver") cd $srcdir/$_pkgname-${_simver}-${_simrel}-source install -Dm644 qt/icon/SimulationCraft.xpm "$pkgdir/usr/share/pixmaps/SimulationCraft.xpm" install -Dm644 "$srcdir/SimulationCraft.desktop" "$pkgdir/usr/share/applications/SimulationCraft.desktop" for _locale in locale/* ; do - install -Dm644 $_locale $pkgdir/usr/share/simcraft/$_locale + install -Dm644 $_locale $pkgdir/usr/share/simulationcraft/$_locale done - install -Dm755 SimulationCraft $pkgdir/usr/bin/simcraft + install -Dm755 SimulationCraft $pkgdir/usr/bin/simulationcraft make install INSTALL_ROOT=$pkgdir - rm -rf $pkgdir/usr/share/simcraft + rm -rf $pkgdir/usr/share/simulationcraft } fi if [ $_gui = true ] ; then makedepends+=( 'qt5-base' 'qt5-webkit') - true && pkgname=( simcraft simcraft-gui simcraft-data ) + true && pkgname=( simulationcraft simulationcraft-gui simulationcraft-data ) else - true && pkgname=( simcraft simcraft-data ) + true && pkgname=( simulationcraft simulationcraft-data ) fi |