Skip to content

Commit

Permalink
Merge branch 'hotfix/0.4.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldotknopf committed Oct 11, 2017
2 parents 7114c19 + 5bc567e commit 999bcfd
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions scripts/arch/travis-deploy-arch
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

DIRNAME="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIRNAME

if [ -z "$TRAVIS_TAG" ]; then
echo "No tag found."
Expand All @@ -11,25 +12,24 @@ PACKAGE_VERSION=`echo "${TRAVIS_TAG}" | sed s/.//1`

echo Updating PKGBUILD for $PACKAGE_VERSION...

openssl aes-256-cbc -K $encrypted_006e19af42e6_key -iv $encrypted_006e19af42e6_iv -in arch.key.enc -out arch.key -d
ssh-add arch.key

ssh-keyscan aur.archlinux.org >> ~/.ssh/known_hosts
git clone ssh://[email protected]/darch.git $DIRNAME/aur
git clone ssh://[email protected]/darch.git aur

cd $DIRNAME/aur
cd aur

openssl aes-256-cbc -K $encrypted_006e19af42e6_key -iv $encrypted_006e19af42e6_iv -in arch.key.enc -out arch.key -d
ssh-add arch.key
git config user.email [email protected]
git config user.name Paul Knopf

cp $DIRNAME/PKGBUILD-template PKGBUILD

sed -i -e "s/PKGVER/$PACKAGE_VERSION/g" PKGBUILD
sed -i -e "s/PKGVER/$PACKAGE_VERSION/g" PKGBUILD
sed -i -e "s/PKGREL/1/g" PKGBUILD

updpkgsums

makepkg --printsrcinfo > .SRCINFO
docker run --rm -v $(pwd):/working --user 1000 -w /working aitorpazos/archlinux-docker-makepkg bash -c "updpkgsums && makepkg --printsrcinfo > .SRCINFO"

git add PKGBUILD .SRCINFO
git commit -m "Auto update from tag $TRAVIS_TAG."
git push origin master

0 comments on commit 999bcfd

Please sign in to comment.