commitpkg: Add support for 'any' architecture
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
This commit is contained in:
parent
a3f1558b28
commit
47e7a3706b
|
@ -27,14 +27,22 @@ fi
|
||||||
|
|
||||||
source PKGBUILD
|
source PKGBUILD
|
||||||
pkgfile=${pkgname}-${pkgver}-${pkgrel}-${CARCH}${PKGEXT}
|
pkgfile=${pkgname}-${pkgver}-${pkgrel}-${CARCH}${PKGEXT}
|
||||||
|
anypkgfile=${pkgname}-${pkgver}-${pkgrel}-any${PKGEXT}
|
||||||
oldstylepkgfile=${pkgname}-${pkgver}-${pkgrel}${PKGEXT}
|
oldstylepkgfile=${pkgname}-${pkgver}-${pkgrel}${PKGEXT}
|
||||||
|
|
||||||
if [ ! -f $pkgfile ]; then
|
if [ ! -f $pkgfile ]; then
|
||||||
if [ -f $PKGDEST/$pkgfile ]; then
|
if [ -f $PKGDEST/$pkgfile ]; then
|
||||||
pkgfile=$PKGDEST/$pkgfile
|
pkgfile=$PKGDEST/$pkgfile
|
||||||
|
anypkgfile=$PKGDEST/$anypkgfile
|
||||||
oldstylepkgfile=$PKGDEST/$oldstylepkgfile
|
oldstylepkgfile=$PKGDEST/$oldstylepkgfile
|
||||||
|
elif [ -f $anypkgfile ]; then
|
||||||
|
pkgfile=$anypkgfile
|
||||||
|
CARCH=any
|
||||||
elif [ -f $oldstylepkgfile ]; then
|
elif [ -f $oldstylepkgfile ]; then
|
||||||
pkgfile=$oldstylepkgfile
|
pkgfile=$oldstylepkgfile
|
||||||
|
elif [ -f $PKGDEST/$anypkgfile ]; then
|
||||||
|
pkgfile=$PKGDEST/$anypkgfile
|
||||||
|
CARCH=any
|
||||||
elif [ -f $PKGDEST/$oldstylepkgfile ]; then
|
elif [ -f $PKGDEST/$oldstylepkgfile ]; then
|
||||||
pkgfile=$PKGDEST/$oldstylepkgfile
|
pkgfile=$PKGDEST/$oldstylepkgfile
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue