summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucki2016-01-31 19:55:47 +0100
committerLucki2016-01-31 19:55:47 +0100
commit0c08251b74ffceb604e07f8dda2255b7b13b7cff (patch)
tree09bc475287581f3308528499b55d4a12a308c297
downloadaur-0c08251b74ffceb604e07f8dda2255b7b13b7cff.tar.gz
Initial commit
-rw-r--r--.CHANGELOG6
-rw-r--r--.SRCINFO29
-rw-r--r--PKGBUILD61
-rw-r--r--lix-server.sh3
-rw-r--r--lix.install9
-rw-r--r--lix.sh3
6 files changed, 111 insertions, 0 deletions
diff --git a/.CHANGELOG b/.CHANGELOG
new file mode 100644
index 00000000000..6331cc46b25
--- /dev/null
+++ b/.CHANGELOG
@@ -0,0 +1,6 @@
+This fix works for replays played from the replay browser,
+and for normal play with framestepping.
+
+It does not work for loading the user savestate: Effects will
+probably be drawn at least once. I'd have to save the entire effect
+list with the user savestate, which would be overkill right now.
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..75969246efd
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,29 @@
+# Generated by mksrcinfo v8
+# Sun Jan 31 18:52:27 UTC 2016
+pkgbase = lix
+ pkgdesc = An action-puzzle game in the IRS (Interactive Rodent Simulation) genre inspired by Lemmings
+ pkgver = 2016.01.09.r0.gdead180
+ pkgrel = 1
+ url = http://asdfasdf.ethz.ch/~simon/index.php
+ install = lix.install
+ changelog = .CHANGELOG
+ arch = i686
+ arch = x86_64
+ license = custom:CC0
+ makedepends = gendesk
+ depends = allegro4
+ depends = enet
+ depends = libpng
+ provides = lix
+ conflicts = lix-git
+ source = lix::git://github.com/SimonN/Lix.git#tag=v2016-01-09
+ source = lix-logo.png::http://asdfasdf.ethz.ch/~simon/bitmap/lix_with_lem.png
+ source = lix.sh
+ source = lix-server.sh
+ sha512sums = SKIP
+ sha512sums = f116accf767391710ccc44d8fc41b3bdf67b1af2e81c9f08175973f4fa3aa59ef8af460bc1ebf9e9f0b50a44f67628085994348708c6c9db96da8c97551ee33f
+ sha512sums = 82fdaa227c9a86a55a02e6f0409f39c9f72e26e956d55b593df3d7fd4c5368ce904868b1603acb1a17ea502c0d5a26586ccbae7c67bb377b204b5b0d3f5455be
+ sha512sums = 081d6bddf6256f3d641ead7cf934ad5e88f220b8f9f7f6aa8ee85d4cce42858c6f60ba14111823834d7925e93d46b5838ca98d3b985a501a8ad757632b8e6e88
+
+pkgname = lix
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9eccb33ef5b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,61 @@
+# Maintainer: Lucki <Lucki at holarse-linuxgaming dot de>
+# Contributor: Carl Reinke <mindless2112 gmail com>
+
+pkgname=lix
+pkgver=2016.01.09.r0.gdead180
+pkgrel=1
+pkgdesc="An action-puzzle game in the IRS (Interactive Rodent Simulation) genre inspired by Lemmings"
+arch=('i686' 'x86_64')
+url="http://asdfasdf.ethz.ch/~simon/index.php"
+license=('custom:CC0')
+changelog=.CHANGELOG
+install=${pkgname}.install
+depends=('allegro4' 'enet' 'libpng')
+makedepends=('gendesk')
+provides=('lix')
+conflicts=('lix-git')
+source=(${pkgname}::git://github.com/SimonN/Lix.git#tag=v2016-01-09
+ ${pkgname}-logo.png::http://asdfasdf.ethz.ch/~simon/bitmap/lix_with_lem.png
+ ${pkgname}.sh
+ ${pkgname}-server.sh)
+sha512sums=('SKIP'
+ 'f116accf767391710ccc44d8fc41b3bdf67b1af2e81c9f08175973f4fa3aa59ef8af460bc1ebf9e9f0b50a44f67628085994348708c6c9db96da8c97551ee33f'
+ '82fdaa227c9a86a55a02e6f0409f39c9f72e26e956d55b593df3d7fd4c5368ce904868b1603acb1a17ea502c0d5a26586ccbae7c67bb377b204b5b0d3f5455be'
+ '081d6bddf6256f3d641ead7cf934ad5e88f220b8f9f7f6aa8ee85d4cce42858c6f60ba14111823834d7925e93d46b5838ca98d3b985a501a8ad757632b8e6e88')
+
+pkgver()
+{
+ cd "${srcdir}/${pkgname}"
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare()
+{
+ # generate .desktop-file
+ gendesk -n -f --categories "Game"
+
+ # update .CHANGELOG
+ #git -C "${srcdir}/${pkgname}" log --graph -10 > "${startdir}/.CHANGELOG"
+}
+
+build()
+{
+ cd "${srcdir}/${pkgname}"
+ make
+}
+
+package()
+{
+ install -Dm644 "${srcdir}/${pkgname}/doc/copying.txt" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
+ install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
+ install -Dm755 "${srcdir}/${pkgname}-server.sh" "${pkgdir}/usr/bin/${pkgname}-server"
+ install -Dm755 "${srcdir}/${pkgname}/bin/${pkgname}" "${pkgdir}/opt/${pkgname}/bin/${pkgname}"
+ install -Dm755 "${srcdir}/${pkgname}/bin/lixd" "${pkgdir}/opt/${pkgname}/bin/lixd"
+ install -Dm644 "${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+ install -Dm644 "${srcdir}/${pkgname}-logo.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
+
+ cp -R "${srcdir}/${pkgname}/data/" "${srcdir}/${pkgname}/doc/" "${srcdir}/${pkgname}/levels/" "${srcdir}/${pkgname}/images/" "${pkgdir}/opt/${pkgname}/"
+ mkdir "${pkgdir}/opt/${pkgname}/replays"
+ chown :games "${pkgdir}/opt/${pkgname}/data" "${pkgdir}/opt/${pkgname}/replays" "${pkgdir}/opt/${pkgname}/images" "${pkgdir}/opt/${pkgname}/levels" "${pkgdir}/opt/${pkgname}/data/user"
+ chmod 775 "${pkgdir}/opt/${pkgname}/data" "${pkgdir}/opt/${pkgname}/replays" "${pkgdir}/opt/${pkgname}/images" "${pkgdir}/opt/${pkgname}/levels" "${pkgdir}/opt/${pkgname}/data/user"
+}
diff --git a/lix-server.sh b/lix-server.sh
new file mode 100644
index 00000000000..b9d0d9a76e0
--- /dev/null
+++ b/lix-server.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd /opt/lix/
+exec ./bin/lixd "$@"
diff --git a/lix.install b/lix.install
new file mode 100644
index 00000000000..87fc372697d
--- /dev/null
+++ b/lix.install
@@ -0,0 +1,9 @@
+post_install() {
+ echo "Add your user to the games group to save configurations."
+}
+
+post_remove() {
+ if [ -d "/opt/lix" ]; then
+ rm -r /opt/lix
+ fi
+}
diff --git a/lix.sh b/lix.sh
new file mode 100644
index 00000000000..4e3c0dda6e6
--- /dev/null
+++ b/lix.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd /opt/lix/
+exec ./bin/lix "$@"