This commit is contained in:
Manuel Domke
2018-10-04 18:15:42 +02:00
2 changed files with 10 additions and 24 deletions

View File

@@ -3,12 +3,13 @@
_pkgname=infnoise _pkgname=infnoise
pkgname=${_pkgname} 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') license=('custom:Unlicense')
url='https://github.com/13-37-org/infnoise' url='https://github.com/13-37-org/infnoise'
depends=('libftdi-compat') depends=('libftdi-compat')
makedepends=("git") makedepends=("git")
source=('git+https://github.com/13-37-org/infnoise.git') source=('git+https://github.com/13-37-org/infnoise')
sha256sums=("SKIP") sha256sums=("SKIP")
install='INSTALL' install='INSTALL'

View File

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