pkgbuild and RPM fixes

This commit is contained in:
Matthew Bowra-Dean
2011-01-05 14:14:34 +13:00
parent 6a7c968e25
commit eb158e6d21
2 changed files with 14 additions and 10 deletions

View File

@@ -16,12 +16,14 @@ fi
# Replace any dashes in the version string with periods
PKGVERSION=`echo $1 | sed "s/-/\\./g"`
sed -i "s/{VERSION}/$PKGVERSION/" PKGBUILD
rootdir=`readlink -f $2`
sed -i "s|{ROOT}|$rootdir|" PKGBUILD
sed -i "s/{ARCH}/$ARCH/" PKGBUILD
cp PKGBUILD PKGBUILD$ARCH
makepkg --holdver
sed -i "s/{VERSION}/$PKGVERSION/" PKGBUILD$ARCH
rootdir=`readlink -f $2`
sed -i "s|{ROOT}|$rootdir|" PKGBUILD$ARCH
sed -i "s/{ARCH}/$ARCH/" PKGBUILD$ARCH
makepkg --holdver -p PKGBUILD$ARCH
if [ $? -ne 0 ]; then
exit 1
fi