summaryrefslogtreecommitdiff
path: root/libre/abuse
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2014-09-03 18:33:55 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2014-09-03 18:33:55 -0300
commit272d8546acd8cce70852359bc1fee429d3fa5dc7 (patch)
tree16913c4f89aaa62c200590deca2ffd6b524a306f /libre/abuse
parent468e115b1432c745ce9ccf06d2fcca6b3cfb7227 (diff)
downloadabslibre-272d8546acd8cce70852359bc1fee429d3fa5dc7.tar.gz
abslibre-272d8546acd8cce70852359bc1fee429d3fa5dc7.tar.bz2
abslibre-272d8546acd8cce70852359bc1fee429d3fa5dc7.zip
rename to abuse-libre
Diffstat (limited to 'libre/abuse')
-rw-r--r--libre/abuse/PKGBUILD79
-rw-r--r--libre/abuse/abuse.install13
-rw-r--r--libre/abuse/abuse.sh15
-rw-r--r--libre/abuse/default.abuserc37
-rw-r--r--libre/abuse/default.gamma.lsp1
-rw-r--r--libre/abuse/non-claudio.patch122
6 files changed, 267 insertions, 0 deletions
diff --git a/libre/abuse/PKGBUILD b/libre/abuse/PKGBUILD
new file mode 100644
index 000000000..6734cce30
--- /dev/null
+++ b/libre/abuse/PKGBUILD
@@ -0,0 +1,79 @@
+# $Id: PKGBUILD 101370 2013-11-23 19:00:48Z arodseth $
+# Maintainer (Arch): Alexander Rødseth <rodseth@gmail.com>
+# Contributor (Arch): Lukas Fleischer <archlinux at cryptocrack dot de>
+# Contributor (Arch): jlvsimoes <jlvsimoes@oninet.pt>
+# Contributor (Arch): kevin <kevin@archlinux.org>
+# Contributor: André Silva <emulatorman@parabola.nu>
+# Contributor: Márcio Silva <coadde@parabola.nu>
+
+pkgname=abuse
+_pkgname=$pkgname-libre
+pkgver=0.8
+pkgrel=4
+pkgdesc='Side-scroller action game that pits you against ruthless alien killers, without nonfree claudio support'
+arch=('x86_64' 'i686' 'mips64el')
+url="http://$pkgname.zoy.org/"
+license=('GPL' 'custom')
+replaces=($_pkgname)
+conflicts=($_pkgname)
+depends=('gcc-libs' 'libgl' 'sdl_mixer' 'glu' 'desktop-file-utils')
+makedepends=('gendesk' 'mesa-libgl' 'glu')
+install="$pkgname.install"
+mksource=("http://$pkgname.zoy.org/raw-attachment/wiki/download/$_pkgname-$pkgver.tar.gz"
+ 'non-claudio.patch')
+source=("https://repo.parabolagnulinux.org/other/$pkgname/$pkgname-$pkgver.tar.gz"
+ "$pkgname.sh"
+ "default.${pkgname}rc"
+ 'default.gamma.lsp')
+mksha256sums=('0104db5fd2695c9518583783f7aaa7e5c0355e27c5a803840a05aef97f9d3488'
+ '017cb58acf5ba8cdb889f97a758318cb66ab4947b860a77ab16b932c3f21b98f')
+sha256sums=('ff7018b3ddcc6d2e702bc14eb2884622677ac5141c36e1fc0cdd127df3017f7d'
+ 'a5ddac71ca9b8c4bb42bdf91393a5fbe3d839ab9a9e9a6362a75dafc2aab122e'
+ '6ea2fa9e65c10bbcab4432f40d0c7284cb3970835c40c5c00ced14b39ce1b00f'
+ '13df83fea60918d29d5141cdfbd8d56147c053e88d3701209ae676f46447c2f6')
+
+mksource() {
+ cd "$pkgname-$pkgver"
+
+ # Remove the nonfree claudio addon
+ rm -rvf ./data/addon/claudio
+ patch -Np1 -i "$srcdir/non-claudio.patch"
+}
+
+prepare() {
+ cd "$pkgname-$pkgver"
+
+ gendesk -n -f --pkgname "$pkgname" --pkgdesc "$pkgdesc"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+
+ ./configure --prefix=/usr --with-assetdir="/usr/share/$pkgname/orig" --with-x
+ make
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir" install
+
+ # Desktop shortcut and icon
+ install -Dm644 "$pkgname.desktop" \
+ "$pkgdir/usr/share/applications/$pkgname.desktop"
+ install -Dm644 "doc/$pkgname.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
+
+ # Sane defaults
+ mv "$pkgdir/usr/bin/$pkgname" "$pkgdir/usr/bin/$pkgname.elf"
+ install -Dm755 "$srcdir/$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
+ install -Dm644 "$srcdir/default.${pkgname}rc" \
+ "$pkgdir/usr/share/$pkgname/default.${pkgname}rc"
+ install -Dm644 "$srcdir/default.gamma.lsp" \
+ "$pkgdir/usr/share/$pkgname/default.gamma.lsp"
+
+ # License (for the original source code)
+ install -d "$pkgdir/usr/share/licenses/$pkgname"
+ sed -n '1,/^$/p' src/view.cpp > "$pkgdir/usr/share/licenses/$pkgname/original"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/libre/abuse/abuse.install b/libre/abuse/abuse.install
new file mode 100644
index 000000000..ad97d7bab
--- /dev/null
+++ b/libre/abuse/abuse.install
@@ -0,0 +1,13 @@
+post_upgrade() {
+ update-desktop-database -q
+}
+
+post_install() {
+ post_upgrade
+}
+
+post_remove() {
+ post_upgrade
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/libre/abuse/abuse.sh b/libre/abuse/abuse.sh
new file mode 100644
index 000000000..228bb6f7b
--- /dev/null
+++ b/libre/abuse/abuse.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# Use sane configuration files, unless they already exists
+
+if [ ! -d $HOME/.abuse ]; then
+ mkdir -p $HOME/.abuse
+fi
+if [ ! -f $HOME/.abuse/abuserc ]; then
+ cp /usr/share/abuse/default.abuserc $HOME/.abuse/abuserc
+fi
+if [ ! -f $HOME/.abuse/gamma.lsp ]; then
+ cp /usr/share/abuse/default.gamma.lsp $HOME/.abuse/gamma.lsp
+fi
+
+exec /usr/bin/abuse.elf
diff --git a/libre/abuse/default.abuserc b/libre/abuse/default.abuserc
new file mode 100644
index 000000000..ff116819f
--- /dev/null
+++ b/libre/abuse/default.abuserc
@@ -0,0 +1,37 @@
+; Abuse-SDL Configuration file
+
+; Startup fullscreen
+fullscreen=0
+
+; Use DoubleBuffering
+doublebuf=1
+
+; Use OpenGL
+gl=1
+
+; Location of the datafiles
+datadir=/usr/share/abuse/orig
+
+; Use mono audio only
+mono=0
+
+; Grab the mouse to the window
+grabmouse=0
+
+; Set the scale factor
+scale=2
+
+; Use anti-aliasing (with gl=1 only)
+antialias=0
+
+; Disable the SDL parachute in the case of a crash
+nosdlparachute=0
+
+; Key mappings
+left=a
+right=d
+up=w
+down=s
+fire=Space
+weapprev=q
+weapnext=e
diff --git a/libre/abuse/default.gamma.lsp b/libre/abuse/default.gamma.lsp
new file mode 100644
index 000000000..9a77afa27
--- /dev/null
+++ b/libre/abuse/default.gamma.lsp
@@ -0,0 +1 @@
+(setq darkest_gray 20)
diff --git a/libre/abuse/non-claudio.patch b/libre/abuse/non-claudio.patch
new file mode 100644
index 000000000..2a29e53f0
--- /dev/null
+++ b/libre/abuse/non-claudio.patch
@@ -0,0 +1,122 @@
+--- abuse-0.8/data/Makefile.in 2011-05-09 08:06:35.000000000 -0300
++++ abuse-0.8/data/Makefile.in 2012-04-11 15:03:02.854839102 -0300
+@@ -184,7 +184,6 @@
+ addon/aliens/objects.lsp addon/aliens/powerold.lsp \
+ addon/aliens/powerups.lsp addon/aliens/sfx.lsp \
+ addon/aliens/tiles.lsp addon/bong/bong.lsp \
+- addon/claudio/claudio.lsp addon/claudio/oldclaud.lsp \
+ addon/deathmat/cur_lev.lsp addon/deathmat/deathmat.lsp \
+ addon/deathmat/dstartup.lsp addon/deathmat/gamename.lsp \
+ addon/deathmat/large.lsp addon/deathmat/levelset.lsp \
+@@ -245,23 +244,6 @@
+ art/tints/guns/orange.spe art/tints/guns/redish.spe \
+ addon/aliens/aliens.spe addon/aliens/bactiles.spe \
+ addon/aliens/fortiles.spe addon/bong/bong.spe \
+- addon/claudio/antship.spe addon/claudio/bigexp.spe \
+- addon/claudio/deepw1.spe addon/claudio/deepw2.spe \
+- addon/claudio/droid.spe addon/claudio/extiles.spe \
+- addon/claudio/fire.spe addon/claudio/lamp.spe \
+- addon/claudio/lava2.spe addon/claudio/mypanels.spe \
+- addon/claudio/nplatfor.spe addon/claudio/pal21.spe \
+- addon/claudio/pal2.spe addon/claudio/pal5.spe \
+- addon/claudio/pal81f.spe addon/claudio/pal81.spe \
+- addon/claudio/pal82f.spe addon/claudio/pal82.spe \
+- addon/claudio/pal90.spe addon/claudio/rob2.spe \
+- addon/claudio/skull.spe addon/claudio/spaced.spe \
+- addon/claudio/spaceh.spe addon/claudio/spacymed.spe \
+- addon/claudio/spacytdm.spe addon/claudio/sswitch.spe \
+- addon/claudio/t_lamp.spe addon/claudio/trex1.spe \
+- addon/claudio/t_skull.spe addon/claudio/t_space.spe \
+- addon/claudio/t_trex.spe addon/claudio/t_water.spe \
+- addon/claudio/umbrel3.spe addon/claudio/watem.spe \
+ addon/example/example.spe addon/leon/gray.spe \
+ addon/leon/level00.spe addon/leon/level01.spe \
+ addon/leon/level02.spe addon/leon/lmisc.spe \
+@@ -333,7 +315,6 @@
+ doc = \
+ addon/aliens/aliens.txt \
+ addon/aliens/readme.txt \
+- addon/claudio/palettes.txt \
+ addon/leon/leon.txt \
+ addon/newart/tiledoc.txt \
+ addon/pong/pong.txt \
+@@ -414,17 +395,6 @@
+ @HAVE_NONFREE_TRUE@ addon/aliens/aslash01.wav \
+ @HAVE_NONFREE_TRUE@ addon/aliens/egghatch.wav \
+ @HAVE_NONFREE_TRUE@ addon/aliens/jarbreak.wav \
+-@HAVE_NONFREE_TRUE@ addon/claudio/aship.wav \
+-@HAVE_NONFREE_TRUE@ addon/claudio/drill.wav \
+-@HAVE_NONFREE_TRUE@ addon/claudio/fire.wav \
+-@HAVE_NONFREE_TRUE@ addon/claudio/glass1.wav \
+-@HAVE_NONFREE_TRUE@ addon/claudio/sewers.wav \
+-@HAVE_NONFREE_TRUE@ addon/claudio/skull.wav \
+-@HAVE_NONFREE_TRUE@ addon/claudio/spaceo.wav \
+-@HAVE_NONFREE_TRUE@ addon/claudio/trex1.wav \
+-@HAVE_NONFREE_TRUE@ addon/claudio/trex2.wav \
+-@HAVE_NONFREE_TRUE@ addon/claudio/unhealth.wav \
+-@HAVE_NONFREE_TRUE@ addon/claudio/wfall.wav \
+ @HAVE_NONFREE_TRUE@ addon/leon/sfx/ambship1.wav \
+ @HAVE_NONFREE_TRUE@ addon/leon/sfx/ambship2.wav \
+ @HAVE_NONFREE_TRUE@ addon/leon/sfx/gren5.wav \
+--- abuse-0.8/data/Makefile.am 2011-05-09 04:58:04.000000000 -0300
++++ abuse-0.8/data/Makefile.am 2012-04-11 15:03:50.282407491 -0300
+@@ -35,7 +35,6 @@
+ \
+ addon/bong/bong.lsp \
+ \
+- addon/claudio/claudio.lsp addon/claudio/oldclaud.lsp \
+ addon/deathmat/cur_lev.lsp addon/deathmat/deathmat.lsp \
+ addon/deathmat/dstartup.lsp addon/deathmat/gamename.lsp \
+ addon/deathmat/large.lsp addon/deathmat/levelset.lsp \
+@@ -113,21 +112,6 @@
+ \
+ addon/bong/bong.spe \
+ \
+- addon/claudio/antship.spe addon/claudio/bigexp.spe \
+- addon/claudio/deepw1.spe addon/claudio/deepw2.spe addon/claudio/droid.spe \
+- addon/claudio/extiles.spe addon/claudio/fire.spe addon/claudio/lamp.spe \
+- addon/claudio/lava2.spe addon/claudio/mypanels.spe \
+- addon/claudio/nplatfor.spe addon/claudio/pal21.spe addon/claudio/pal2.spe \
+- addon/claudio/pal5.spe addon/claudio/pal81f.spe addon/claudio/pal81.spe \
+- addon/claudio/pal82f.spe addon/claudio/pal82.spe addon/claudio/pal90.spe \
+- addon/claudio/rob2.spe addon/claudio/skull.spe addon/claudio/spaced.spe \
+- addon/claudio/spaceh.spe addon/claudio/spacymed.spe \
+- addon/claudio/spacytdm.spe addon/claudio/sswitch.spe \
+- addon/claudio/t_lamp.spe addon/claudio/trex1.spe \
+- addon/claudio/t_skull.spe addon/claudio/t_space.spe \
+- addon/claudio/t_trex.spe addon/claudio/t_water.spe \
+- addon/claudio/umbrel3.spe addon/claudio/watem.spe \
+- \
+ addon/example/example.spe \
+ \
+ addon/leon/gray.spe addon/leon/level00.spe addon/leon/level01.spe \
+@@ -214,7 +198,6 @@
+ doc = \
+ addon/aliens/aliens.txt \
+ addon/aliens/readme.txt \
+- addon/claudio/palettes.txt \
+ addon/leon/leon.txt \
+ addon/newart/tiledoc.txt \
+ addon/pong/pong.txt \
+@@ -267,11 +250,6 @@
+ addon/aliens/altaunt.wav addon/aliens/aslash01.wav \
+ addon/aliens/egghatch.wav addon/aliens/jarbreak.wav \
+ \
+- addon/claudio/aship.wav addon/claudio/drill.wav addon/claudio/fire.wav \
+- addon/claudio/glass1.wav addon/claudio/sewers.wav addon/claudio/skull.wav \
+- addon/claudio/spaceo.wav addon/claudio/trex1.wav addon/claudio/trex2.wav \
+- addon/claudio/unhealth.wav addon/claudio/wfall.wav \
+- \
+ addon/leon/sfx/ambship1.wav addon/leon/sfx/ambship2.wav \
+ addon/leon/sfx/gren5.wav addon/leon/sfx/gren6.wav \
+ addon/leon/sfx/rain2.wav addon/leon/sfx/rain3.wav \
+--- abuse-0.8/data/abuse.lsp 2011-05-09 04:58:04.000000000 -0300
++++ abuse-0.8/data/abuse.lsp 2012-04-11 15:04:15.637788215 -0300
+@@ -42,7 +42,6 @@
+ (load "addon/twist/f2chars.lsp")
+ (load "addon/twist/f2ai.lsp")
+ (load "addon/aliens/astartup.lsp")
+-(load "addon/claudio/claudio.lsp")
+ (load "addon/twist/lisp/dray.lsp")
+ (load "addon/twist/lisp/mario.lsp")
+ (load "addon/leon/4frabs.lsp")