commitpkg: Add support for 'any' architecture

Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
This commit is contained in:
Daniel J Griffiths 2009-08-12 13:39:25 -07:00 committed by Aaron Griffin
parent a3f1558b28
commit 47e7a3706b
1 changed files with 8 additions and 0 deletions

View File

@ -27,14 +27,22 @@ fi
source PKGBUILD
pkgfile=${pkgname}-${pkgver}-${pkgrel}-${CARCH}${PKGEXT}
anypkgfile=${pkgname}-${pkgver}-${pkgrel}-any${PKGEXT}
oldstylepkgfile=${pkgname}-${pkgver}-${pkgrel}${PKGEXT}
if [ ! -f $pkgfile ]; then
if [ -f $PKGDEST/$pkgfile ]; then
pkgfile=$PKGDEST/$pkgfile
anypkgfile=$PKGDEST/$anypkgfile
oldstylepkgfile=$PKGDEST/$oldstylepkgfile
elif [ -f $anypkgfile ]; then
pkgfile=$anypkgfile
CARCH=any
elif [ -f $oldstylepkgfile ]; then
pkgfile=$oldstylepkgfile
elif [ -f $PKGDEST/$anypkgfile ]; then
pkgfile=$PKGDEST/$anypkgfile
CARCH=any
elif [ -f $PKGDEST/$oldstylepkgfile ]; then
pkgfile=$PKGDEST/$oldstylepkgfile
else