Reverted packaging changes from launchers.

This commit is contained in:
Matthew Bowra-Dean
2011-01-27 14:46:15 +13:00
committed by Paul Chote
parent a81c865620
commit 4eaf97f90e
32 changed files with 61 additions and 3023 deletions

View File

@@ -3,13 +3,14 @@ pkgname=openra
pkgver={VERSION}
pkgrel=1
pkgdesc="Open Source rebuild of the Red Alert game engine using Mono/OpenGL."
arch=('{ARCH}')
arch=('any')
url="http://open-ra.org"
license=('GPL3')
groups=()
depends=('mono' 'openal' 'mesa' 'freetype2' 'sdl' 'gtk2' 'libwebkit')
depends=('mono' 'openal' 'mesa' 'freetype2' 'sdl')
makedepends=('git' 'unzip' 'wget')
optdepends=()
optdepends=('gksu: Elevation for installing game packages on Gnome platforms'
'kdesudo: Elevation for installing game packages on KDE platforms')
provides=()
conflicts=()
replaces=()

View File

@@ -1,32 +1,22 @@
#!/bin/bash
E_BADARGS=85
if [ $# -ne "4" ]
if [ $# -ne "3" ]
then
echo "Usage: `basename $0` version root-dir outputdir arch"
echo "Usage: `basename $0` version root-dir outputdir"
exit $E_BADARGS
fi
if [ $4 = "x64" ]
then
ARCH=x86_64
else
ARCH=i686
fi
# Replace any dashes in the version string with periods
PKGVERSION=`echo $1 | sed "s/-/\\./g"`
cp PKGBUILD PKGBUILD$ARCH
sed -i "s/{VERSION}/$PKGVERSION/" PKGBUILD$ARCH
sed -i "s/{VERSION}/$PKGVERSION/" PKGBUILD
rootdir=`readlink -f $2`
sed -i "s|{ROOT}|$rootdir|" PKGBUILD$ARCH
sed -i "s/{ARCH}/$ARCH/" PKGBUILD$ARCH
sed -i "s|{ROOT}|$rootdir|" PKGBUILD
makepkg --holdver -p PKGBUILD$ARCH
makepkg --holdver -p PKGBUILD
if [ $? -ne 0 ]; then
exit 1
fi
mv openra-$PKGVERSION-1-$ARCH.pkg.tar.xz $3
mv openra-$PKGVERSION-1-any.pkg.tar.xz $3