diff options
author | Brian Bidulock | 2015-06-10 04:29:18 -0600 |
---|---|---|
committer | Brian Bidulock | 2015-06-10 04:29:18 -0600 |
commit | b190cc98e3528cf35f3274bbe244fdd8a5b40a61 (patch) | |
tree | 0d5afcb512afc0610cde0c9e371df1221cefe9d8 | |
download | aur-b190cc98e3528cf35f3274bbe244fdd8a5b40a61.tar.gz |
initial version
-rw-r--r-- | .SRCINFO | 25 | ||||
-rw-r--r-- | PKGBUILD | 47 | ||||
-rw-r--r-- | rollemup.desktop | 8 | ||||
-rw-r--r-- | rollemup.install | 11 | ||||
-rw-r--r-- | rollemup.png | bin | 0 -> 6049 bytes | |||
-rw-r--r-- | rollemup.sh | 21 |
6 files changed, 112 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0db5538b43c5 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,25 @@ +pkgbase = rollemup + pkgdesc = Pinball game that was originally made by LostBoys for the Dutch brewery Dommelsch + pkgver = 1.00 + pkgrel = 4 + url = http://happypenguin.altervista.org/gameshow.php?t=Roll%20%27m%20Up + install = rollemup.install + arch = i686 + arch = x86_64 + license = custom: freeware + depends = sh + depends = libxext + optdepends = alsa-oss: oss emulation for alsa audio output + source = http://www.pro-linux.de/files/rollemup/Rollemup.tar.gz + source = http://www.pro-linux.de/files/rollemup/libstdc++.so.2.8 + source = rollemup.sh + source = rollemup.png + source = rollemup.desktop + sha256sums = 3419c7b170d24e6c33ef583f8cab7003199cd594ce9d3a3f3e8a8607184ea272 + sha256sums = 51481e2aaea55bfe3b69b5819257c7a0057c4e4331f5ad0a904e481b41da73af + sha256sums = f7ce27a6cb5464f7ed7fb3220dd9cac4e092f16ec4ff54aa2540915cee2046d1 + sha256sums = 2d4f80685c1c50305e3c7110b99c19b83383e6ab768b2ef7d34a179860da4cc7 + sha256sums = f4daca476233dfc872c5b4ab738a21d55fb06ff83d68e53873491fcb000aa70d + +pkgname = rollemup + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..04b87311502b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: 404 +# Contributor: carstene1ns <url/mail: arch carsten-teibes de> +# Contributor: Artificial Intelligence <polarbeard@gmail.com> + +pkgname=rollemup +pkgver=1.00 +pkgrel=4 +pkgdesc="Pinball game that was originally made by LostBoys for the Dutch brewery Dommelsch" +arch=('i686' 'x86_64') +url='http://happypenguin.altervista.org/gameshow.php?t=Roll%20%27m%20Up' +license=('custom: freeware') +install=rollemup.install +depends=('sh' 'libxext') +optdepends=('alsa-oss: oss emulation for alsa audio output') +if [ "$CARCH" = "x86_64" ]; then + depends=('sh' 'lib32-libxext') + optdepends=('lib32-alsa-oss: oss emulation for alsa audio output') +fi +#old source files (in case pro-linux.de deletes them): +#source=("ftp://ftp.tw.freebsd.org/pub/ports/distfiles/Rollemup.tar.gz" +# "http://archive.fedoraproject.org/pub/archive/fedora/linux/core/3/i386/os/Fedora/RPMS/compat-libstdc++-8-3.3.4.2.i386.rpm" +source=("http://www.pro-linux.de/files/rollemup/Rollemup.tar.gz" + "http://www.pro-linux.de/files/rollemup/libstdc++.so.2.8" + "$pkgname.sh" + "$pkgname.png" + "$pkgname.desktop") +sha256sums=('3419c7b170d24e6c33ef583f8cab7003199cd594ce9d3a3f3e8a8607184ea272' + '51481e2aaea55bfe3b69b5819257c7a0057c4e4331f5ad0a904e481b41da73af' + 'f7ce27a6cb5464f7ed7fb3220dd9cac4e092f16ec4ff54aa2540915cee2046d1' + '2d4f80685c1c50305e3c7110b99c19b83383e6ab768b2ef7d34a179860da4cc7' + 'f4daca476233dfc872c5b4ab738a21d55fb06ff83d68e53873491fcb000aa70d') + +package() { + # binary + install -Dm755 Rollemup/Rollemup "$pkgdir"/opt/rollemup/Rollemup + # data + cp -r Rollemup/{Upload,Media} "$pkgdir"/opt/rollemup + # ancient libstdc++ + install -Dm755 libstdc++.so.2.8 "$pkgdir"/opt/rollemup/lib/libstdc++.so.2.8 + # doc + install -Dm644 Rollemup/README "$pkgdir"/usr/share/doc/$pkgname/README + # desktop entry + install -Dm644 $pkgname.png "$pkgdir"/usr/share/pixmaps/$pkgname.png + install -Dm644 $pkgname.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop + # launcher + install -Dm755 rollemup.sh "$pkgdir"/usr/bin/rollemup +} diff --git a/rollemup.desktop b/rollemup.desktop new file mode 100644 index 000000000000..d08166a8e4ba --- /dev/null +++ b/rollemup.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=Roll'em Up +Comment=Classic pinball game +Exec=rollemup +Icon=rollemup +Terminal=false +Type=Application +Categories=Game; diff --git a/rollemup.install b/rollemup.install new file mode 100644 index 000000000000..c3871c8cae4a --- /dev/null +++ b/rollemup.install @@ -0,0 +1,11 @@ + +post_install() { + echo "For audio output, you likely need to setup OSS or emulation. Then you can launch" + echo "for ALSA:'aoss rollemup' or for PulseAudio:'padsp rollemup'. The launcher shell" + echo "script '/usr/bin/rollemup' is commented, just edit accordingly." + echo "Please also note that the game uses hardcoded keycodes for querty(us) keyboards!" +} + +post_upgrade() { + post_install +} diff --git a/rollemup.png b/rollemup.png Binary files differnew file mode 100644 index 000000000000..9a37fb0a9272 --- /dev/null +++ b/rollemup.png diff --git a/rollemup.sh b/rollemup.sh new file mode 100644 index 000000000000..e96c583e9ee6 --- /dev/null +++ b/rollemup.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +# OSS emulator ('padsp' for Pulseaudio, 'aoss' for ALSA, leave empty for OSS) +OSSEMU="" + +# directory where the game is installed +INSTALLDIR="/opt/rollemup" + +# create copies and links to data files in home directory +# (this allows per user highscores and settings) +if [ ! -e ~/.rollemup/Media/Rollemup.8.MSF ]; then + # need to be user writeable + mkdir -p ~/.rollemup/{Games,Upload} + cp $INSTALLDIR/Upload/Highscore.html ~/.rollemup/Upload + # static data + ln -s -t ~/.rollemup $INSTALLDIR/Media + ln -s -t ~/.rollemup/Upload $INSTALLDIR/Upload/{send.gif,name.jpg,hiscore.jpg} +fi + +# change path to our built environment, set path to ancient library and launch the game +cd ~/.rollemup && LD_LIBRARY_PATH=$INSTALLDIR/lib exec $OSSEMU $INSTALLDIR/Rollemup $* |