summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Teibes2014-07-24 19:14:33 +0200
committerCarsten Teibes2014-07-24 19:14:33 +0200
commit21c750c70f836f2929aa9423583431d6113cb253 (patch)
tree723b92902cbac59a27e6b571c87be2072b3d88e7
parent89ce56bd2e5b924f5092b66e576becb8b0da558c (diff)
downloadaur-21c750c70f836f2929aa9423583431d6113cb253.tar.gz
[upd] 0.5.5.1→0.5.6
Adapt to cdogs-git
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD41
2 files changed, 27 insertions, 30 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7eb8f2b6faf..c2c2b4a863e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = cdogs
pkgdesc = SDL port of DOS arcade game C-Dogs (aka "Cyberdogs 2")
- pkgver = 0.5.5.1
+ pkgver = 0.5.6
pkgrel = 1
url = http://cxong.github.io/cdogs-sdl/
arch = i686
@@ -9,16 +9,16 @@ pkgbase = cdogs
makedepends = cmake
depends = sdl_mixer
depends = sdl_image
- source = cdogs-0.5.5.1.tar.gz::https://github.com/cxong/cdogs-sdl/archive/0.5.5.1.tar.gz
- source = hqx-for-0.5.5.1.tar.gz::https://github.com/cxong/hqx/archive/2a8a05854ad2147425d0b55a3c40e81c368c97fd.tar.gz
- source = cbehave-for-0.5.5.1.tar.gz::https://github.com/cxong/cbehave/archive/4ab8ce9fe7662c593ce92d5f99f6b60dbaeadad7.tar.gz
- source = rlutil-for-0.5.5.1.tar.gz::https://github.com/cxong/rlutil/archive/1407ec0e1775366aed527b6113dd14a02d046c09.tar.gz
- source = tinydir-for-0.5.5.1.tar.gz::https://github.com/cxong/tinydir/archive/5545eeb7bf5ee2b64f790a276f89aa1856a6269a.tar.gz
- sha256sums = 3013861dc73241b2081b6f41ed3937a7afa9b19a7f8e3cc9470ba1b4f1244f8d
+ source = cdogs-0.5.6.tar.gz::https://github.com/cxong/cdogs-sdl/archive/0.5.6.tar.gz
+ source = hqx-for-0.5.6.tar.gz::https://github.com/cxong/hqx/archive/2a8a05854ad2147425d0b55a3c40e81c368c97fd.tar.gz
+ source = cbehave-for-0.5.6.tar.gz::https://github.com/cxong/cbehave/archive/4ab8ce9fe7662c593ce92d5f99f6b60dbaeadad7.tar.gz
+ source = rlutil-for-0.5.6.tar.gz::https://github.com/cxong/rlutil/archive/1407ec0e1775366aed527b6113dd14a02d046c09.tar.gz
+ source = tinydir-for-0.5.6.tar.gz::https://github.com/cxong/tinydir/archive/53aab97d6a11d70d669ce9c36d0d90ec6937c33d.tar.gz
+ sha256sums = 7ead552ed98ce0606ec671f783e3b192cefd0ed37a0b2c8e856eda6d5e9ede1c
sha256sums = fca25adefd14af3584dcf0e48c69647aa46a924ddbfcb75ec6053528f1bd80bc
sha256sums = df3f546c63ab1517d2ae3053e2156f80555d3ddf96328190527965e1ca5dfc9d
sha256sums = 42116a68a2fd8e810529df65e2703a3c3cd89d34e5e4652e3955e11f4d55abfe
- sha256sums = ebd1c2c64724f5f5e1837e42bae1f5c67a0be4df09b7974c2d6a3d64c8314ea4
+ sha256sums = 2d71972034d570ac506dee5909cfac72c1870734228a61b266e354f2d9acf277
pkgname = cdogs
diff --git a/PKGBUILD b/PKGBUILD
index a8d41c6270c..2713685c012 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,11 +1,8 @@
-# Maintainer: carstene1ns <url/mail: arch carsten-teibes de>
-# Contributor: jose riha <jose 1711 gmail com>
-# Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
-# Contributor: nut543 <kfs1@online.no>
-# Contributor: Dany Martineau <dany.luc.martineau at gmail.com>
+# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
+# Contributors: jose riha, Christoph Zeiler, nut543 and Dany Martineau
pkgname=cdogs
-pkgver=0.5.5.1
+pkgver=0.5.6
pkgrel=1
pkgdesc='SDL port of DOS arcade game C-Dogs (aka "Cyberdogs 2")'
arch=('i686' 'x86_64')
@@ -17,49 +14,49 @@ source=(cdogs-$pkgver.tar.gz::"https://github.com/cxong/cdogs-sdl/archive/$pkgve
hqx-for-$pkgver.tar.gz::"https://github.com/cxong/hqx/archive/2a8a05854ad2147425d0b55a3c40e81c368c97fd.tar.gz"
cbehave-for-$pkgver.tar.gz::"https://github.com/cxong/cbehave/archive/4ab8ce9fe7662c593ce92d5f99f6b60dbaeadad7.tar.gz"
rlutil-for-$pkgver.tar.gz::"https://github.com/cxong/rlutil/archive/1407ec0e1775366aed527b6113dd14a02d046c09.tar.gz"
- tinydir-for-$pkgver.tar.gz::"https://github.com/cxong/tinydir/archive/5545eeb7bf5ee2b64f790a276f89aa1856a6269a.tar.gz")
-sha256sums=('3013861dc73241b2081b6f41ed3937a7afa9b19a7f8e3cc9470ba1b4f1244f8d'
+ tinydir-for-$pkgver.tar.gz::"https://github.com/cxong/tinydir/archive/53aab97d6a11d70d669ce9c36d0d90ec6937c33d.tar.gz")
+sha256sums=('7ead552ed98ce0606ec671f783e3b192cefd0ed37a0b2c8e856eda6d5e9ede1c'
'fca25adefd14af3584dcf0e48c69647aa46a924ddbfcb75ec6053528f1bd80bc'
'df3f546c63ab1517d2ae3053e2156f80555d3ddf96328190527965e1ca5dfc9d'
'42116a68a2fd8e810529df65e2703a3c3cd89d34e5e4652e3955e11f4d55abfe'
- 'ebd1c2c64724f5f5e1837e42bae1f5c67a0be4df09b7974c2d6a3d64c8314ea4')
+ '2d71972034d570ac506dee5909cfac72c1870734228a61b266e354f2d9acf277')
prepare() {
# copy submodules to right location
cp -rup hqx-2a8a05854ad2147425d0b55a3c40e81c368c97fd/* $pkgname-sdl-$pkgver/src/cdogs/hqx
cp -rup cbehave-4ab8ce9fe7662c593ce92d5f99f6b60dbaeadad7/* $pkgname-sdl-$pkgver/src/tests/cbehave
cp -rup rlutil-1407ec0e1775366aed527b6113dd14a02d046c09/* $pkgname-sdl-$pkgver/src/tests/cbehave/rlutil
- cp -rup tinydir-5545eeb7bf5ee2b64f790a276f89aa1856a6269a/* $pkgname-sdl-$pkgver/src/tinydir
+ cp -rup tinydir-53aab97d6a11d70d669ce9c36d0d90ec6937c33d/* $pkgname-sdl-$pkgver/src/tinydir
cd $pkgname-sdl-$pkgver
- # disable -Werror (aborts build)
- sed 's|add_definitions(-Winline -Werror)|add_definitions(-Winline)|' -i CMakeLists.txt
+ # disable -Werror (aborts build) and change data directory
+ sed 's| -Werror||;s|CDOGS_DATA_DIR "../"|CDOGS_DATA_DIR "/usr/share/cdogs/"|' \
+ -i CMakeLists.txt
# fix name in .desktop file
- sed 's|Exec=cdogs-sdl|Exec=cdogs|g' -i build/linux/cdogs-sdl.desktop
+ sed 's|cdogs-sdl|cdogs|g' -i build/linux/cdogs-sdl.desktop
}
build() {
cd $pkgname-sdl-$pkgver
- cmake ./ -DDESTDIR=/opt/cdogs/bin
+ cmake ./
make
}
package() {
cd $pkgname-sdl-$pkgver
- # launcher + binary
- install -Dm755 build/linux/cdogs-sdl "$pkgdir"/usr/bin/cdogs
- install -Dm755 src/cdogs-sdl "$pkgdir"/opt/cdogs/bin/cdogs-sdl
+ # binary
+ install -Dm755 src/cdogs-sdl "$pkgdir"/usr/bin/cdogs
# data
- cp -r dogfights graphics missions music sounds "$pkgdir"/opt/cdogs/
+ install -d "$pkgdir"/usr/share/cdogs
+ cp -r doc dogfights graphics missions music sounds *.json "$pkgdir"/usr/share/cdogs
# doc
- install -d "$pkgdir"/usr/share/doc/cdogs
- cp -r doc/* "$pkgdir"/usr/share/doc/cdogs
- ln -s /usr/share/doc/cdogs/ "$pkgdir"/opt/cdogs/doc
+ install -d "$pkgdir"/usr/share/doc
+ ln -s /usr/share/cdogs/doc "$pkgdir"/usr/share/doc/cdogs
# .desktop file
- install -Dm644 build/linux/cdogs-icon.48.png "$pkgdir"/usr/share/pixmaps/cdogs_icon.png
+ install -Dm644 build/linux/cdogs-icon.48.png "$pkgdir"/usr/share/pixmaps/cdogs.png
install -Dm644 build/linux/cdogs-sdl.desktop "$pkgdir"/usr/share/applications/cdogs.desktop
}