summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD25
1 files changed, 13 insertions, 12 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 45d8f61fb71..dff0e233c55 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,7 @@
pkgname=warmux
pkgver=11.04.1
-pkgrel=9
+pkgrel=10
pkgdesc="Clone of turn-based artillery games like Scorched Earth or Worms (formerly known as Wormux)"
arch=('i686' 'x86_64')
url="http://gna.org/projects/warmux/"
@@ -16,34 +16,35 @@ license=('GPL')
depends=('libxml++' 'sdl_image' 'sdl_gfx' 'sdl_ttf' 'sdl_mixer' 'sdl_net' 'curl' 'gcc-libs' 'libxml2')
replaces=('wormux' 'warmux-data')
conflicts=('warmux-data')
-source=("http://download.gna.org/$pkgname/$pkgname-$pkgver.tar.bz2"
+source=("https://github.com/a-team/wormux/archive/master.zip"
'include-zlib.patch'
- 'gcc-fix.patch'
'return-null.patch'
- 'curl-ptr.patch')
-sha256sums=('789c4f353e4c5ce0a2aba2e82861d3fd0e5218bc76d8da1a332f2c7b1b27e4ee'
- '665c4a64e54478491284f6cb6251bd58f96ba81671a7c439cffe175b86462852'
- '3f271dc6249ababe919733268c34464fc3050fc7c2b0329e9017f1b32c7760f5'
+ 'curl-ptr.patch'
+ )
+sha256sums=('ca6caf7973d0a8e45e9c5b6f7e5b884f836f390204d53c6d2a1c340ab095e76f'
+ '665c4a64e54478491284f6cb6251bd58f96ba81671a7c439cffe175b86462852'
'0e0692fb2acc5697c3083deeff41dcdb055f3330cbac146ebab4aa0f021ad03c'
- 'de232b7f2264f9d576ba77f43f79dc698f6ba987d059468f5b2bb5f40cf644d3')
+ 'de232b7f2264f9d576ba77f43f79dc698f6ba987d059468f5b2bb5f40cf644d3'
+ )
prepare() {
- cd "$pkgname-${pkgver/.1/}"
+ cd $srcdir/wormux-master
# libpng fix
patch -Np1 < ../include-zlib.patch
# compilation fixes
- patch -Np1 < ../gcc-fix.patch
+ echo "==> return-null.patch"
patch -Np0 < ../return-null.patch
+ echo "==> curl-ptr.path"
patch -Np1 < ../curl-ptr.patch
}
build() {
- cd "$pkgname-${pkgver/.1/}"
+ cd $srcdir/wormux-master
./configure --prefix=/usr
make
@@ -51,7 +52,7 @@ build() {
package() {
- cd "$pkgname-${pkgver/.1/}"
+ cd $srcdir/wormux-master
make DESTDIR="$pkgdir" install
}