summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJorge Barroso2015-06-15 21:31:51 +0200
committerJorge Barroso2015-06-15 21:31:51 +0200
commitf23bfe074fd1407d38e1c3ff53e2141d5f9e6633 (patch)
tree5da3458fc9f10616ae20ed7a194b3b012678f2dd
downloadaur-f23bfe074fd1407d38e1c3ff53e2141d5f9e6633.tar.gz
Initial import
-rw-r--r--.SRCINFO36
-rwxr-xr-xPKGBUILD87
-rwxr-xr-xcounter-strike-2d.ChangeLog67
-rwxr-xr-xcs2d-fs.desktop9
-rwxr-xr-xcs2d.desktop10
-rwxr-xr-xcs2d.install5
-rwxr-xr-xcs2d.pngbin0 -> 7239 bytes
7 files changed, 214 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b191deeca6f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,36 @@
+pkgbase = counter-strike-2d
+ pkgdesc = More than just a freeware clone of the well known game Counter-Strike
+ pkgver = 0.1.2.5
+ pkgrel = 1
+ url = http://www.cs2d.com/
+ install = cs2d.install
+ changelog = counter-strike-2d.ChangeLog
+ arch = i686
+ arch = x86_64
+ license = custom
+ makedepends = curl
+ options = emptydirs
+ backup = opt/cs2d/sys/autobuy.cfg
+ backup = opt/cs2d/sys/autoexec.cfg
+ backup = opt/cs2d/sys/config.cfg
+ backup = opt/cs2d/sys/controls.cfg
+ backup = opt/cs2d/sys/editor.cfg
+ backup = opt/cs2d/sys/filters.cfg
+ backup = opt/cs2d/sys/mapcycle.cfg
+ backup = opt/cs2d/sys/more.cfg
+ backup = opt/cs2d/sys/server.cfg
+ backup = opt/cs2d/sys/usgn.dat
+ backup = opt/cs2d/sys/usgn_pw.dat
+ source = cs2d_0125_linux.zip::http://www.unrealsoftware.de/get.php?get=cs2d_0125_linux.zip&p=1&cid=get.php?get=cs2d_0125_linux.zip&p=1&cid=16515
+ source = cs2d_0125_win.zip::http://www.unrealsoftware.de/get.php?get=cs2d_0125_win.zip&p=1&cid=get.php?get=cs2d_0125_linux.zip&p=1&cid=16515
+ source = cs2d.desktop
+ source = cs2d-fs.desktop
+ source = cs2d.png
+ sha512sums = 31c565f2160dff540e45c23f1a129234930b402e15b718dd22963fa198fbd332486a3c828c7edc93f2fc39bc8201020722040ef305e0a8410b7e509511ea07e3
+ sha512sums = bd67e277bd7612d8485ac594c5a32fcf659ab3b1daf53fe616f4f67ccdb0303307bb208a45de32046fde78fa1b5bd2e46fe3c090237204ceda7ef5a7e0647c99
+ sha512sums = 9db3ccddf9180461de5bfea671d52f5d7fe3ef9eb00bef69853362983b227315f75f931d8d4ed9e541a56872b461cb8a1864bbbf1cc88b3e9ed3a52c32a01238
+ sha512sums = 18cee40fd348ffba864d22f6a1c3e20aeaeba031b0ac0d288885b0d8f82aa553a37047b9793e66440d7e6a008077bd11aeff6cecf6681a38b0a835a1bccf971a
+ sha512sums = dfe79598af30797195fad38461119f7d611021577a1e1e624567adeceade8f9bc4c97cd110515e492d612d09b740f78faf7dce55448f64a9a698e7748f121a80
+
+pkgname = counter-strike-2d
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100755
index 00000000000..113740fdf71
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,87 @@
+# Contributor: 404
+# Contributor: carstene1ns <url/mail: arch carsten-teibes de>
+# Contributor: josephgbr <rafael.f.f1@gmail.com>
+# Contributor: Josef Lusticky <evramp@gmail.com>
+# Maintainer Jorge Barroso <jorge.barroso.11 at gmail dot com>
+
+pkgname=counter-strike-2d
+pkgver=0.1.2.5
+_ver=0125
+pkgrel=1
+pkgdesc="More than just a freeware clone of the well known game Counter-Strike"
+arch=('i686' 'x86_64')
+url="http://www.cs2d.com/"
+license=('custom')
+changelog=$pkgname.ChangeLog
+if [ "$CARCH" == "x86_64" ]; then
+ depends=('lib32-freetype2' 'lib32-libtxc_dxtn' 'lib32-glu')
+ optdepends=('lib32-openal: audio output'
+ 'lib32-ati-dri: video acceleration'
+ 'lib32-intel-dri: video acceleration'
+ 'lib32-nouveau-dri: video acceleration')
+elif [ "$CARCH" == "i686" ]; then
+depends=('freetype2' 'libtxc_dxtn' 'glu')
+optdepends=('openal: audio output'
+ 'ati-dri: video acceleration'
+ 'intel-dri: video acceleration'
+ 'nouveau-dri: video acceleration')
+fi
+
+makedepends=('curl')
+install=cs2d.install
+backup=(opt/cs2d/sys/autobuy.cfg opt/cs2d/sys/autoexec.cfg
+ opt/cs2d/sys/config.cfg opt/cs2d/sys/controls.cfg
+ opt/cs2d/sys/editor.cfg opt/cs2d/sys/filters.cfg
+ opt/cs2d/sys/mapcycle.cfg opt/cs2d/sys/more.cfg
+ opt/cs2d/sys/server.cfg opt/cs2d/sys/usgn.dat
+ opt/cs2d/sys/usgn_pw.dat)
+sha512sums=('31c565f2160dff540e45c23f1a129234930b402e15b718dd22963fa198fbd332486a3c828c7edc93f2fc39bc8201020722040ef305e0a8410b7e509511ea07e3'
+ 'bd67e277bd7612d8485ac594c5a32fcf659ab3b1daf53fe616f4f67ccdb0303307bb208a45de32046fde78fa1b5bd2e46fe3c090237204ceda7ef5a7e0647c99'
+ '9db3ccddf9180461de5bfea671d52f5d7fe3ef9eb00bef69853362983b227315f75f931d8d4ed9e541a56872b461cb8a1864bbbf1cc88b3e9ed3a52c32a01238'
+ '18cee40fd348ffba864d22f6a1c3e20aeaeba031b0ac0d288885b0d8f82aa553a37047b9793e66440d7e6a008077bd11aeff6cecf6681a38b0a835a1bccf971a'
+ 'dfe79598af30797195fad38461119f7d611021577a1e1e624567adeceade8f9bc4c97cd110515e492d612d09b740f78faf7dce55448f64a9a698e7748f121a80')
+ # hack for generated id, see also https://bbs.archlinux.org/viewtopic.php?id=141195
+_url=http://www.unrealsoftware.de/get.php?get
+
+grabcid() {
+ local file=cs2d_${_ver}_linux.zip
+ echo "$(curl -Ss "$_url=${file}&p=1" |
+ grep -o '"get.php[^"]\+"' | cut -d'"' -f2 | sed 's/&amp;/\&/g')"
+}
+_cid=$(grabcid) # this will hide the cmd line above from AUR interface
+source=(cs2d_${_ver}_linux.zip::"$_url=cs2d_${_ver}_linux.zip&p=1&cid=${_cid}"
+ cs2d_${_ver}_win.zip::"$_url=cs2d_${_ver}_win.zip&p=1&cid=${_cid}"
+ "cs2d.desktop"
+ "cs2d-fs.desktop"
+ "cs2d.png")
+options=(emptydirs)
+
+package() {
+ # create folders
+ install -d "$pkgdir"/{opt/cs2d,usr/{share/{doc,licenses}/$pkgname,bin}}
+
+ # data
+ cp -R bots gfx help logos maps screens sfx sys "$pkgdir"/opt/cs2d
+
+ # executable
+ install -m755 CounterStrike2D "$pkgdir"/opt/cs2d
+ ln -s /opt/cs2d/CounterStrike2D "$pkgdir"/usr/bin/cs2d
+
+ # desktop launcher
+ install -Dm644 cs2d.png "$pkgdir"/usr/share/pixmaps/cs2d.png
+ install -Dm644 cs2d.desktop "$pkgdir"/usr/share/applications/cs2d.desktop
+
+ # license
+ sed -n 84,106p Readme.txt > "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+ # doc
+ install -m644 *.txt "$pkgdir"/usr/share/doc/$pkgname
+
+ # allow editing of configs
+ chmod g+w "$pkgdir"/opt/cs2d/sys/*.{cfg,dat}
+ chgrp games "$pkgdir"/opt/cs2d/sys/*.{cfg,dat}
+
+ # allow logging and caching
+ chmod -R g+w "$pkgdir"/opt/cs2d/sys/{logs,core}
+ chgrp games -R "$pkgdir"/opt/cs2d/sys/{logs,core}
+}
diff --git a/counter-strike-2d.ChangeLog b/counter-strike-2d.ChangeLog
new file mode 100755
index 00000000000..15e82c16af6
--- /dev/null
+++ b/counter-strike-2d.ChangeLog
@@ -0,0 +1,67 @@
+2014-05-17 osense <krupicka.adam@gmail.com>
+ * counter-strike-2d 0.1.2.4-1 :
+ new maintainer
+
+2014-01-13 carstene1ns <url/mail: arch carsten-teibes de>
+ * counter-strike-2d 0.1.2.3-1 :
+ rewritten PKGBUILD nearly from scratch
+ moved installation to /opt folder
+ fix for filenames is not necessary anymore
+ removed unzip makedep, using libarchive now
+
+2012-09-15 josephgbr <rafael.f.f1@gmail.com>
+ * counter-strike-2d 0.1.2.1-1 :
+ added user's files in backup, so they shouldn't be overwritten on install
+ added fix to languages' filename, caused by having accent + charset issue
+
+2012-05-09 josephgbr <rafael.f.f1@gmail.com>
+ * counter-strike-2d 0.1.2.0-4 :
+ fixed source URL, now getting a cid required to download.
+
+2012-05-08 josephgbr <rafael.f.f1@gmail.com>
+ * counter-strike-2d 0.1.2.0-3 :
+ depends: lua added (needed for server)
+ set writer permission to configure files, to avoid 'permission denied'
+ when running cs2d as normal user.
+
+2012-05-08 josephgbr <rafael.f.f1@gmail.com>
+ * counter-strike-2d 0.1.2.0-1 :
+ depends and makedepends reviewed with strace
+ sources now get .zip files, and windows archive files are required
+ new maintainer
+
+2011-03-28 Josef Lusticky <evramp@gmail.com>
+ * counter-strike-2d 0.1.1.9b-2 :
+ chmoded files to 644, dirs to 755
+
+2011-03-27 Josef Lusticky <evramp@gmail.com>
+ * counter-strike-2d 0.1.1.9b-1 :
+
+2010-12-27 Josef Lusticky <evramp@gmail.com>
+ * counter-strike-2d 0.1.1.8b-2 :
+ depends: libxxf86vm/lib32-libxxf86vm added
+
+2010-09-18 Josef Lusticky <evramp@gmail.com>
+ * counter-strike-2d 0.1.1.8b-1 :
+
+2010-02-14 Josef Lusticky <evramp@gmail.com>
+ * counter-strike-2d 0.1.1.7b-3 :
+ depends: libstdc++5/lib32-libstdc++5 removed
+ depends: freetype2/lib32-freetype2 added
+ depends: gcc-libs/lib32-gcc-libs added
+ cs2d-launcher line 501 edited to launch CounterStrike2D properly
+ (`"$bash_prompt"` -> /usr/bin/CounterStrike2D...)
+
+2010-01-01 Josef Lusticky <evramp@gmail.com>
+ * counter-strike-2d 0.1.1.7b-2 :
+ depends: libgl/lib32-libgl added
+
+2009-12-26 Josef Lusticky <evramp@gmail.com>
+ * counter-strike-2d 0.1.1.7b-1 :
+ ChangeLog added
+ SHA1 checksums added
+ makedepends: coreutils added
+
+2009-12-11 Josef Lusticky <evramp@gmail.com>
+ * counter-strike-2d 0.1.1.6-2 :
+ Symbolic link to cs2d-launcher fixed
diff --git a/cs2d-fs.desktop b/cs2d-fs.desktop
new file mode 100755
index 00000000000..d309b959ab5
--- /dev/null
+++ b/cs2d-fs.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Type=Application
+Icon=cs2d
+Exec=cs2d -fullscreen
+Name=Counter-Strike 2D (Fullscreen)
+Comment=Multiplayer 2D FPS shooter
+Categories=Game;ArcadeGame;
+Terminal=false
+StartupNotify=false
diff --git a/cs2d.desktop b/cs2d.desktop
new file mode 100755
index 00000000000..11acbe21bc2
--- /dev/null
+++ b/cs2d.desktop
@@ -0,0 +1,10 @@
+#!/usr/bin/env xdg-open
+[Desktop Entry]
+Type=Application
+Icon=cs2d
+Exec=cs2d
+Name=Counter-Strike 2D
+Comment=Multiplayer 2D FPS shooter
+Categories=Game;ArcadeGame;
+Terminal=false
+StartupNotify=false
diff --git a/cs2d.install b/cs2d.install
new file mode 100755
index 00000000000..9fed4079828
--- /dev/null
+++ b/cs2d.install
@@ -0,0 +1,5 @@
+
+post_install() {
+ echo "You can change all settings in /opt/cs2d/sys/*.cfg. You have to be"
+ echo "in the games group to have write access."
+}
diff --git a/cs2d.png b/cs2d.png
new file mode 100755
index 00000000000..991e4cc1481
--- /dev/null
+++ b/cs2d.png
Binary files differ