1 # Contributor: MCMic <come.bernigaud@laposte.net>
6 pkgdesc="An abstract first-person shooter built on the Quake3 engine."
8 url="http://vectorpoem.com/purity/"
11 makedepends=('make' 'svn')
12 optdepends=('zenity: allow using purity-zen to choose graphically the map')
14 source=('http://vectorpoem.com/purity/latest_content/core.pk3'
15 'http://vectorpoem.com/purity/latest_content/map0.pk3'
16 'http://vectorpoem.com/purity/latest_content/vm.pk3'
18 noextract=( 'core.pk3'
21 md5sums=('4f5b6af36a738a54570f21fb24177edd'
22 'b7f5730e443ea5c066d7ef67bce09892'
23 '8396c0dfe49c31ff866800837bf80d9d'
24 '8361d4586bf2c0dd1a31edddf8b70d89')
26 _svn='https://purityq3.svn.sourceforge.net/svnroot/purityq3'
30 msg "Getting svn revision…"
31 if [ -d $pkgname/.svn ]; then
32 (cd $pkgname && svn up)
41 msg "Cleaning and adapting scripts"
42 build_folder=`ls ${srcdir}/$pkgname/build`
43 bin_name=`ls ${srcdir}/$pkgname/build/$build_folder | grep "purity\."`
44 bin_serv=`ls ${srcdir}/$pkgname/build/$build_folder | grep "purity-ded"`
45 bin_path=/opt/$pkgname/build/$build_folder/$bin_name
46 serv_path=/opt/$pkgname/build/$build_folder/$bin_serv
47 _bin=`echo $bin_path | sed "s|\/|\\\/|g"`
48 _serv=`echo $serv_path | sed "s|\/|\\\/|g"`
50 for i in `ls *.bat | cut -d'.' -f1`
51 do sed -i "s|@start purity.x86|$_bin|" $i.bat
52 sed -i "s|@start purity-ded.x86|$_serv|" $i.bat
57 sed -i "s|purity_cmd|$_bin|" ${srcdir}/purity-zen
60 mkdir -p ${pkgdir}/usr/bin
61 cp ${srcdir}/$pkgname/purity.sh ${pkgdir}/usr/bin/
62 cp ${srcdir}/purity-zen ${pkgdir}/usr/bin/
63 mkdir -p ${pkgdir}/opt/$pkgname/build/$build_folder/base
64 cp -r ${srcdir}/$pkgname ${pkgdir}/opt/
65 cp ${srcdir}/*.pk3 ${pkgdir}/opt/$pkgname/build/$build_folder/base/