[aur-general] [AUR4] Single binary package for different architectures

Νῖκος Θεοδώρου ntheo1979 at gmail.com
Sat Jun 13 18:46:19 UTC 2015


On Sat, 13 Jun 2015 20:31:08 +0200
Rudy Matela <rudy at matela.com.br> wrote:

> if [ ${CARCH} = 'x86_64' ]; then
> source=("http://example.com/release-${pkgver}-x86_64.tar.gz")
> md5sums=('00112233445566778899aabbccddeeff')
> else
> source=("http://example.com/release-${pkgver}-i386.tar.gz")
> md5sums=('ffeeddccbbaa99887766554433221100')
> fi
> 
> Running mksrcinfo fails with the error:
> 
> /path/PKGBUILD: line XX: [: =: unary operator expected
> 
> "line XX" points to the line containing the if.
> 
> 
> Are there some guildelines for packaging something like this?
> How could I make mksrcinfo work?

I do it like that and mksrcinfo works fine:

if [ "$CARCH" = "i686" ]; then
source=(…)
md5sums=(…)
elif [ "$CARCH" = "x86_64" ]; then
source=(…)
md5sums=(…)
fi

-- 
Νῖκος Θεοδώρου
«Ἀγεωμέτρητος μηδεὶς εἰσίτω!»


More information about the aur-general mailing list