fix archlinux build (and removed i686 support)

This commit is contained in:
root
2018-10-04 12:27:54 +02:00
parent a14ac94ded
commit d053684788
2 changed files with 10 additions and 24 deletions

View File

@@ -3,12 +3,13 @@
_pkgname=infnoise
pkgname=${_pkgname}
pkgdesc='Infinite Noise TRNG - The world's easiest TRNG to get right'
pkgver=0.2.6.r86.g453234b
pkgdesc="Infinite Noise TRNG - The world's easiest TRNG to get right"
license=('custom:Unlicense')
url='https://github.com/13-37-org/infnoise'
depends=('libftdi-compat')
makedepends=("git")
source=('git+https://github.com/13-37-org/infnoise.git')
source=('git+https://github.com/13-37-org/infnoise')
sha256sums=("SKIP")
install='INSTALL'

View File

@@ -9,18 +9,17 @@ if [ $VERSION == $PKGREL ]; then # this is a release
PKGREL=0
fi
SIGNPACKAGE=1
SIGNPACKAGE=true
while test $# -gt 0
do
case "$1" in
--notsigned) SIGNPACKAGE=false
--notsigned) SIGNPACKAGE=0
;;
esac
shift
done
# x86_64
mkdir -p x86_64
cd x86_64
@@ -29,26 +28,12 @@ cp ../build-scripts/PKGBUILD.arch PKGBUILD
cp ../build-scripts/INSTALL.arch INSTALL
sed -i "s|.*source.*=.*(.*).*|source=('git+$GITREPO')|g" PKGBUILD
echo "pkgver=$VERSION.$PKGREL" >> PKGBUILD
#echo "pkgver=$VERSION.$PKGREL" >> PKGBUILD
echo "pkgrel=1" >> PKGBUILD
echo "arch=('x86_64')" >> PKGBUILD
if [ "$SIGNPACKAGE" == true ]; then
makepkg -f --sign --key 975DC25C4E730A3C
else
makepkg -f
makepkg -f
if [ $SIGNPACKAGE -eq 1 ]; then
PKGEXT='.pkg.tar.xz' makepkg --packagelist | xargs -L1 gpg --sign
fi
cd ..
# x86
mkdir -p x86
cd x86
cp ../build-scripts/PKGBUILD.arch PKGBUILD
cp ../build-scripts/INSTALL.arch INSTALL
echo "pkgver=$VERSION.$PKGREL" >> PKGBUILD
echo "pkgrel=1" >> PKGBUILD
echo "arch=('i686')" >> PKGBUILD
makechrootpkg -r /x86 -U jenkins -- --sign --key 975DC25C4E730A3C