-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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." | ||
|
@@ -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 |