Fix arch package building on Travis.

This commit is contained in:
Paul Chote
2014-06-07 15:41:30 +12:00
parent 5784444720
commit c811be1795
2 changed files with 8 additions and 4 deletions

View File

@@ -35,7 +35,10 @@ notifications:
skip_join: true skip_join: true
before_deploy: before_deploy:
- sudo apt-get install nsis markdown dpkg rpm - sudo apt-get install nsis markdown dpkg rpm libarchive-dev m4 fakeroot bsdtar
- wget ftp://ftp.archlinux.org/other/pacman/pacman-4.0.3.tar.gz -O /tmp/pacman-4.0.3.tar.gz
- tar -xzvf pacman-4.0.3.tar.gz
- cd pacman-4.0.3 && ./configure --disable-doc --prefix=/usr && make && sudo make install
- DOTVERSION=`echo ${TRAVIS_TAG} | sed "s/-/\\./g"` - DOTVERSION=`echo ${TRAVIS_TAG} | sed "s/-/\\./g"`
- cd packaging - cd packaging
- mkdir build - mkdir build
@@ -47,8 +50,9 @@ deploy:
file: file:
- build/OpenRA-${TRAVIS_TAG}.exe - build/OpenRA-${TRAVIS_TAG}.exe
- build/OpenRA-${TRAVIS_TAG}.zip - build/OpenRA-${TRAVIS_TAG}.zip
- build/openra-${DOTVERSION}-1.noarch.rpm
- build/openra_${DOTVERSION}_all.deb - build/openra_${DOTVERSION}_all.deb
- build/openra-${DOTVERSION}-1-any.pkg.tar.gz
- build/openra-${DOTVERSION}-1.noarch.rpm
skip_cleanup: true skip_cleanup: true
on: on:
all_branches: true all_branches: true

View File

@@ -13,10 +13,10 @@ sed -i "s/{VERSION}/$PKGVERSION/" PKGBUILD
rootdir=`readlink -f $2` rootdir=`readlink -f $2`
sed -i "s|{ROOT}|$rootdir|" PKGBUILD sed -i "s|{ROOT}|$rootdir|" PKGBUILD
makepkg --holdver -p PKGBUILD makepkg --holdver --nodeps -p PKGBUILD
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
exit 1 exit 1
fi fi
mv openra-$PKGVERSION-1-any.pkg.tar.xz $3 mv openra-$PKGVERSION-1-any.pkg.tar.gz $3