diff options
author | Samuel Kogler | 2015-07-14 11:45:05 +0200 |
---|---|---|
committer | Samuel Kogler | 2015-07-14 11:50:49 +0200 |
commit | 820cdd99cee7241b04911a588003ae39514b6efb (patch) | |
tree | 74696649f18543264541450a3c588d9c417b8e2c | |
download | aur-820cdd99cee7241b04911a588003ae39514b6efb.tar.gz |
Import to aur4 and update to 620-02
-rw-r--r-- | .SRCINFO | 28 | ||||
-rw-r--r-- | PKGBUILD | 97 | ||||
-rw-r--r-- | SimulationCraft.desktop | 8 | ||||
-rw-r--r-- | simcraft.install | 12 |
4 files changed, 145 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..37db6b5a8d09 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,28 @@ +pkgbase = simcraft + pkgdesc = SimulationCraft is a tool to explore combat mechanics in the popular MMO RPG World of Warcraft (tm) + pkgver = 620_02 + pkgrel = 1 + url = http://code.google.com/p/simulationcraft + install = simcraft.install + arch = i686 + arch = x86_64 + license = GPL3 + makedepends = qt5-base + makedepends = qt5-webkit + source = http://downloads.simulationcraft.org/simc-620-02-source.zip + source = SimulationCraft.desktop + md5sums = d1155ac12510ae0344d742ee86d8ba6d + md5sums = 527f78bab42ec0a524388da12e3ce9e0 + +pkgname = simcraft + depends = openssl + depends = simcraft-data=620_02 + +pkgname = simcraft-gui + pkgdesc = SimulationCraft is a tool to explore combat mechanics in the popular MMO RPG World of Warcraft (tm)gui + depends = qt5-base + depends = qt5-webkit + depends = simcraft=620_02 + +pkgname = simcraft-data + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1863f661ce6b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,97 @@ +# Current maintainer: Samuel Kogler <firstname.lastname at gmail.com> +# Original maintainer: Martin Weinelt <mweinelt@gmail.com> +# Contributor: Bjoern Bidar <theodorstormgrade@gmail.com> +_gui=true +pkgbase=simcraft +pkgname=simcraft +_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)" +url="http://code.google.com/p/simulationcraft" +arch=('i686' 'x86_64') +license=('GPL3') + +install=$pkgname.install +source=("http://downloads.simulationcraft.org/$_pkgname-${_simver}-${_simrel}-source.zip" + 'SimulationCraft.desktop' +) +md5sums=('d1155ac12510ae0344d742ee86d8ba6d' + '527f78bab42ec0a524388da12e3ce9e0') + +prepare() +{ + cd $srcdir/${_pkgname}-${_simver}-${_simrel}-source + #dos2unix ${_pkgname}-${_simver}-${_simrel}-source/engine/sc_main.cpp + # we don't want to build engine twice + 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 \ + PREFIX=/usr \ + CONFIG+='to_install' \ + simcqt.pro -o Makefile + fi + +} + +build() +{ + cd $srcdir/${_pkgname}-${_simver}-${_simrel}-source/engine + make PREFIX=/usr CFLAGS+="$CFLAGS" CXXFLAGS+="$CXXFLAGS" LDFLAGS+="$LDFLAGS" + if [ $_gui = true ] ; then + cd .. + make PREFIX=/usr CXXFLAGS+="$CXXFLAGS \$(DEFINES) -fPIC" LDFLAGS+="$LDFLAGS" + fi +} + +package_simcraft-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" + done + + for doc in Welcome.html Welcome.png readme.txt; do + install -Dm644 $doc $pkgdir/usr/share/doc/simcraft/$doc + done + +} + +package_simcraft() +{ + depends=( 'openssl' "simcraft-data=$pkgver" ) + cd $srcdir/$_pkgname-${_simver}-${_simrel}-source + install -Dm755 engine/simc "$pkgdir/usr/bin/simc" +} + +if [ $_gui = true ] ; then +package_simcraft-gui() +{ + pkgdesc+="gui" + depends=( 'qt5-base' 'qt5-webkit' "simcraft=$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 + done + install -Dm755 SimulationCraft $pkgdir/usr/bin/simcraft + make install INSTALL_ROOT=$pkgdir + rm -rf $pkgdir/usr/share/simcraft + +} +fi + +if [ $_gui = true ] ; then + makedepends+=( 'qt5-base' 'qt5-webkit') + true && pkgname=( simcraft simcraft-gui simcraft-data ) +else + true && pkgname=( simcraft simcraft-data ) +fi diff --git a/SimulationCraft.desktop b/SimulationCraft.desktop new file mode 100644 index 000000000000..0d898b5f7ab4 --- /dev/null +++ b/SimulationCraft.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=SimulationCraft +Exec=/usr/bin/simcraft +Icon=SimulationCraft.xpm +Path= +Terminal=false +Type=Application +StartupNotify=true
\ No newline at end of file diff --git a/simcraft.install b/simcraft.install new file mode 100644 index 000000000000..d3289ab64233 --- /dev/null +++ b/simcraft.install @@ -0,0 +1,12 @@ +post_install() { + update-desktop-database -q +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} + |