summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Teibes2016-08-07 12:36:37 +0200
committerCarsten Teibes2016-08-07 12:36:37 +0200
commitddf3992598f4b7d54df1a95fcae81a16d704bd3a (patch)
tree290670ea6e5224f74b35f03d7366aef86370f77b
parentdc496415b4d45dbcd112b629e37d7aa480e6e569 (diff)
downloadaur-ddf3992598f4b7d54df1a95fcae81a16d704bd3a.tar.gz
[upd] 0.6.1→0.6.2
Simplify, fix .desktop entry
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD26
2 files changed, 14 insertions, 18 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7346f81be04..13fc45403fb 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = cdogs
pkgdesc = Enhanced SDL port of DOS arcade game C-Dogs (aka "Cyberdogs 2")
- pkgver = 0.6.1
+ pkgver = 0.6.2
pkgrel = 1
url = http://cxong.github.io/cdogs-sdl/
arch = i686
@@ -9,8 +9,8 @@ pkgbase = cdogs
makedepends = cmake
depends = sdl2_mixer
depends = sdl2_image
- source = cdogs-0.6.1.tar.gz::https://github.com/cxong/cdogs-sdl/archive/0.6.1.tar.gz
- sha256sums = 36035451286e3dd8af036ebfd84eb8ae4b9fa84bfc07a0bf2600cf7a78cbc167
+ source = cdogs-0.6.2.tar.gz::https://github.com/cxong/cdogs-sdl/archive/0.6.2-2.tar.gz
+ sha256sums = 16ea6f1042c6b5e6b9f7f80dbfc112fcb3554bfd5f267326d4bb09eaae500553
pkgname = cdogs
diff --git a/PKGBUILD b/PKGBUILD
index 1d47426fb56..44295bd7e02 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# Contributors: jose riha, Christoph Zeiler, nut543 and Dany Martineau
pkgname=cdogs
-pkgver=0.6.1
+pkgver=0.6.2
pkgrel=1
pkgdesc='Enhanced SDL port of DOS arcade game C-Dogs (aka "Cyberdogs 2")'
arch=('i686' 'x86_64')
@@ -10,29 +10,25 @@ url="http://cxong.github.io/cdogs-sdl/"
license=('GPL2')
depends=('sdl2_mixer' 'sdl2_image')
makedepends=('cmake')
-source=(cdogs-$pkgver.tar.gz::"https://github.com/cxong/cdogs-sdl/archive/$pkgver.tar.gz")
-sha256sums=('36035451286e3dd8af036ebfd84eb8ae4b9fa84bfc07a0bf2600cf7a78cbc167')
+source=(cdogs-$pkgver.tar.gz::"https://github.com/cxong/cdogs-sdl/archive/${pkgver}-2.tar.gz")
+sha256sums=('16ea6f1042c6b5e6b9f7f80dbfc112fcb3554bfd5f267326d4bb09eaae500553')
prepare() {
- cd $pkgname-sdl-$pkgver
+ cd $pkgname-sdl-$pkgver-2
- # disable -Werror (aborts build) and change data directory
- sed 's| -Werror||;s|CDOGS_DATA_DIR "../"|CDOGS_DATA_DIR "/usr/share/cdogs/"|' \
- -i CMakeLists.txt
-
- # change name in .desktop file
- sed 's|cdogs-sdl|cdogs|g' -i build/linux/cdogs-sdl.desktop
+ # disable -Werror (aborts build on mere warnings)
+ sed 's| -Werror||' -i CMakeLists.txt
}
build() {
- cd $pkgname-sdl-$pkgver
+ cd $pkgname-sdl-$pkgver-2
- cmake ./
+ cmake ./ -DCDOGS_DATA_DIR="/usr/share/cdogs/" -DCMAKE_BUILD_TYPE=Release
make
}
package() {
- cd $pkgname-sdl-$pkgver
+ cd $pkgname-sdl-$pkgver-2
# folders
install -d "$pkgdir"/usr/{bin,share/{cdogs,doc}}
# binaries
@@ -43,6 +39,6 @@ package() {
ln -s /usr/share/cdogs/doc "$pkgdir"/usr/share/doc/cdogs
install -m644 README.md "$pkgdir"/usr/share/cdogs/doc
# .desktop entries
- 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
+ install -Dm644 build/linux/cdogs-icon.48.png "$pkgdir"/usr/share/pixmaps/cdogs-sdl.png
+ install -Dm644 build/linux/cdogs-sdl.desktop "$pkgdir"/usr/share/applications/cdogs-sdl.desktop
}