From 2aab31df971b2570c7b14f4ef6d67bf05b71d088 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 18 Jun 2007 12:58:15 +0000 Subject: Updated tools/version.pl once more, to handle dists/slackware/scummvm.SlackBuild svn-id: r27535 --- dists/slackware/scummvm.SlackBuild | 3 +- dists/slackware/scummvm.SlackBuild.in | 58 +++++++++++++++++++++++++++++++++++ tools/update-version.pl | 3 +- 3 files changed, 61 insertions(+), 3 deletions(-) create mode 100755 dists/slackware/scummvm.SlackBuild.in diff --git a/dists/slackware/scummvm.SlackBuild b/dists/slackware/scummvm.SlackBuild index 2d4d563062..97171cbfd1 100755 --- a/dists/slackware/scummvm.SlackBuild +++ b/dists/slackware/scummvm.SlackBuild @@ -8,8 +8,7 @@ if [ "$TMP" = "" ]; then fi PKG=$TMP/package-scummvm -VERSION=0.7.1 -#VERSION=20031221 +VERSION=0.11.0svn ARCH=i486 BUILD=1 diff --git a/dists/slackware/scummvm.SlackBuild.in b/dists/slackware/scummvm.SlackBuild.in new file mode 100755 index 0000000000..84ac94d7e9 --- /dev/null +++ b/dists/slackware/scummvm.SlackBuild.in @@ -0,0 +1,58 @@ +#!/bin/sh +# ScummVM Slackware 9(.1) Package Creation Script +# by Jay Lanagan - roni@parodius.com + +CWD=`pwd` +if [ "$TMP" = "" ]; then + TMP=/tmp +fi +PKG=$TMP/package-scummvm + +VERSION=@VERSION@ +ARCH=i486 +BUILD=1 + +if [ ! -d $TMP ]; then + mkdir -p $TMP +fi +if [ ! -d $PKG ]; then + mkdir -p $PKG +fi + +cd $TMP +# tar xzvf scummvm-$VERSION.tgz +tar xzvf scummvm-$VERSION.tar.gz +# cd scummvm-$VERSION +cd scummvm +chown -R root.root . +CXXFLAGS="-O2 -march=i486 -mcpu=i686" \ +./configure +make +strip scummvm +chmod 755 scummvm +mkdir -p $PKG/usr/bin +cp scummvm $PKG/usr/bin +chown -R root:bin $PKG/usr/bin +gzip -9 dists/scummvm.6 +mkdir -p $PKG/usr/man/man6 +cp dists/scummvm.6.gz $PKG/usr/man/man6 +mkdir -p $PKG/usr/doc/scummvm-$VERSION +cp -a AUTHORS COPYING COPYRIGHT ChangeLog NEWS README TODO \ + $PKG/usr/doc/scummvm-$VERSION +chmod 644 $PKG/usr/doc/scummvm-$VERSION +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +mkdir -p $PKG/usr/share/pixmaps +cp -a icons/scummvm.ico icons/scummvm.xpm \ + $PKG/usr/share/pixmaps +mkdir -p $PKG/usr/share/applications +cp -a dists/scummvm.desktop \ + $PKG/usr/share/applications + +cd $PKG +makepkg -l y -c n $TMP/scummvm-$VERSION-$ARCH-$BUILD.tgz + +if [ "$1" = "--cleanup" ]; then + rm -rf $TMP/scummvm-$VERSION + rm -rf $PKG +fi diff --git a/tools/update-version.pl b/tools/update-version.pl index 6f6d86f648..4a93582d13 100755 --- a/tools/update-version.pl +++ b/tools/update-version.pl @@ -31,11 +31,12 @@ print "Setting version to '$VERSION'\n"; # List of the files in which we need to perform substitution. my @subs_files = qw( + backends/platform/ds/arm9/makefile base/internal_version.h dists/macosx/Info.plist dists/redhat/scummvm.spec dists/scummvm.rc - backends/platform/ds/arm9/makefile + dists/slackware/scummvm.SlackBuild ); # The following files also contain version data and should possible be modified -- cgit v1.2.3