fixed archlinux and rpm builds

This commit is contained in:
Manuel Domke
2018-03-01 23:29:34 +01:00
parent 237f5343a1
commit bb4b062e1f
2 changed files with 5 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
#!/bin/bash
VERSION=`git --no-pager describe --tags --always`
VERSION=`git --no-pager describe --tags --always | cut -d'-' -f0`
PKGREL=`git --no-pager describe --tags --always | cut -d'-' -f1`
# x86_64
mkdir -p x86_64
@@ -9,6 +10,7 @@ cd x86_64
cp ../build-scripts/PKGBUILD.arch PKGBUILD
cp ../build-scripts/INSTALL.arch INSTALL
echo "pkgver=$VERSION" >> PKGBUILD
echo "pkgrel=$PKGREL" >> PKGBUILD
echo "arch=('x86_64')" >> PKGBUILD
ls -lah
makepkg -f --sign --key 975DC25C4E730A3C

View File

@@ -1,10 +1,10 @@
VERSION=$1
VERSION=`git --no-pager describe --tags --always`
ARCH=$2
PATH=$PATH:/sbin/
mkdir -p SOURCES
tar -czf SOURCES/infnoise.tar.gz . --exclude="*.sh" --exclude="SOURCES"
tar -czf SOURCES/infnoise.tar.gz . --exclude="SOURCES"
mkdir -p BUILD SPECS RPMS SRPMS