Fixed pkgbuild and reimplemented RPM scripts.
This commit is contained in:
6
packaging/linux/pkgbuild/buildpackage.sh
Normal file → Executable file
6
packaging/linux/pkgbuild/buildpackage.sh
Normal file → Executable file
@@ -8,11 +8,13 @@ fi
|
||||
|
||||
PKGVERSION=`echo $1 | sed "s/-/\\./g"`
|
||||
sed -i "s/{VERSION}/$PKGVERSION/" PKGBUILD
|
||||
sed -i "s/{ROOT}/$2/" PKGBUILD
|
||||
rootdir=`readlink -f $2`
|
||||
sed -i "s|{ROOT}|$rootdir|" PKGBUILD
|
||||
|
||||
makepkg --holdver
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mv openra-$PKGVERSION-1-any.pkg.tar.xz $3
|
||||
mv openra-$PKGVERSION-1-any.pkg.tar.xz $3
|
||||
|
||||
|
||||
Reference in New Issue
Block a user