diff options
Diffstat (limited to 'games/freeorion/freeorion.SlackBuild')
-rw-r--r-- | games/freeorion/freeorion.SlackBuild | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/games/freeorion/freeorion.SlackBuild b/games/freeorion/freeorion.SlackBuild index 3359deeed5..3d772c0161 100644 --- a/games/freeorion/freeorion.SlackBuild +++ b/games/freeorion/freeorion.SlackBuild @@ -22,9 +22,10 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -PRGNAM=freeorion -SRCVER=${SRCVER:-0.4.5-rc3} -VERSION=$(echo $SRCVER | tr - _) +SRCNAM=FreeOrion +PRGNAM=${SRCNAM,,} +SRCVER=${SRCVER:-v0.4.5_2015-09-01.f203162} +VERSION=$(echo $SRCVER | cut -c2-6) BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -60,9 +61,10 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$SRCVER -tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz || tar xvf $CWD/v$SRCVER.tar.gz -cd $PRGNAM-$SRCVER +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/${SRCNAM}_${SRCVER}_Source.tar.gz +mv src-tarball $PRGNAM-$VERSION +cd $PRGNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -70,12 +72,14 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# Fix cmake target for version file -mv util/Version.cpp.in util/Version.cpp +# tell cmake to use clang +export CC=/usr/bin/clang +export CXX=/usr/bin/clang++ mkdir -p build cd build cmake \ + -D_CMAKE_TOOLCHAIN_PREFIX=llvm- \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ |