diff options
Diffstat (limited to 'libre')
-rw-r--r-- | libre/hex-a-hop/PKGBUILD | 50 | ||||
-rw-r--r-- | libre/hex-a-hop/hex-a-hop.desktop | 11 | ||||
-rw-r--r-- | libre/hex-a-hop/libre.patch | 73 |
3 files changed, 134 insertions, 0 deletions
diff --git a/libre/hex-a-hop/PKGBUILD b/libre/hex-a-hop/PKGBUILD new file mode 100644 index 000000000..b6776acb1 --- /dev/null +++ b/libre/hex-a-hop/PKGBUILD @@ -0,0 +1,50 @@ +# $Id: PKGBUILD 148957 2015-12-06 17:18:40Z bpiotrowski $ +# Maintainer (Arch): Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor (Arch): insulae <insulae@gmail.com> +# Maintainer: André Silva <emulatorman@parabola.nu> +# Contributor: Rnuomer <lessthan3@airmail.cc> + +pkgname=hex-a-hop +pkgver=1.1.0 +pkgrel=5.parabola1 +pkgdesc='Hex-a-hop is a puzzle game based on hexagonal tiles, without nonfree music data' +arch=('i686' 'x86_64') +url='http://hexahop.sourceforge.net/' +license=('GPL') +depends=('sdl_mixer' 'sdl_ttf' 'gcc-libs') +makedepends=() +options=() +mksource=("http://downloads.sourceforge.net/project/hexahop/$pkgver/hex-a-hop-$pkgver.tar.gz") +source=("https://repo.parabola.nu/other/${pkgname}-libre/${pkgname}-libre-${pkgver}.tar.gz" + "hex-a-hop.desktop" + "libre.patch") +mkmd5sums=('cc8d065c2cc0fce9e08852b8c465175e') +md5sums=('dcb0076d19441a961d6b0685a5e0a7bf' + '048ff7975024ae1eda3164620f594c09' + 'f593198f48fdd36a8e8406885ee36770') + +mksource(){ + cd ${srcdir}/${pkgname}-${pkgver}/data + # remove nonfree music data + rm -v *nonfree*.ogg +} + +prepare() { + cd ${srcdir}/${pkgname}-${pkgver} + patch -Np1 -i $srcdir/libre.patch + cd data + # remove info about nonfree music data + rm -v *nonfree*.xml +} + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + ./configure --prefix=/usr + make +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + make install DESTDIR=${pkgdir} + install -Dm0644 $srcdir/hex-a-hop.desktop $pkgdir/usr/share/applications/hex-a-hop.desktop +} diff --git a/libre/hex-a-hop/hex-a-hop.desktop b/libre/hex-a-hop/hex-a-hop.desktop new file mode 100644 index 000000000..3a0ea92af --- /dev/null +++ b/libre/hex-a-hop/hex-a-hop.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Hex-a-Hop +GenericName=Hexagonal Tile-based Puzzle Game +Comment=Hexagonal Tile-based Puzzle Game +Exec=/usr/bin/hex-a-hop +Terminal=false +MultipleArgs=false +Type=Application +Icon=/usr/share/hex-a-hop/icon.bmp +Categories=Game;ArcadeGame diff --git a/libre/hex-a-hop/libre.patch b/libre/hex-a-hop/libre.patch new file mode 100644 index 000000000..c8fbbe856 --- /dev/null +++ b/libre/hex-a-hop/libre.patch @@ -0,0 +1,73 @@ +diff -Nur hex-a-hop-1.1.0.orig/data/Makefile.am hex-a-hop-1.1.0/data/Makefile.am +--- hex-a-hop-1.1.0.orig/data/Makefile.am 2009-09-20 19:01:34.000000000 -0300 ++++ hex-a-hop-1.1.0/data/Makefile.am 2016-01-06 11:00:58.992077197 -0300 +@@ -33,29 +33,7 @@ + sound-used-antiice.ogg.xml \ + sound-used-jump.ogg.xml \ + sound-win.ogg.xml +-nonfreedata = \ +- music-ending-nonfree.ogg \ +- music-game-nonfree.ogg \ +- music-game-nonfree-1.ogg \ +- sound-builder-nonfree.ogg \ +- sound-collapse-nonfree.ogg \ +- sound-found-antiice-nonfree.ogg \ +- sound-found-jump-nonfree.ogg \ +- sound-lift-down-nonfree.ogg \ +- sound-lift-up-nonfree.ogg \ +- sound-spinner-nonfree.ogg +-nonfreeinfo = \ +- music-ending-nonfree.ogg.xml \ +- music-game-nonfree-1.ogg.xml \ +- music-game-nonfree.ogg.xml \ +- sound-builder-nonfree.ogg.xml \ +- sound-collapse-nonfree.ogg.xml \ +- sound-found-antiice-nonfree.ogg.xml \ +- sound-found-jump-nonfree.ogg.xml \ +- sound-lift-down-nonfree.ogg.xml \ +- sound-lift-up-nonfree.ogg.xml \ +- sound-spinner-nonfree.ogg.xml + + datadir = $(DATADIR) +-data_DATA = $(freedata) $(nonfreedata) +-EXTRA_DIST = $(freedata) $(freeinfo) $(nonfreedata) $(nonfreeinfo) ++data_DATA = $(freedata) ++EXTRA_DIST = $(freedata) $(freeinfo) +diff -Nur hex-a-hop-1.1.0.orig/data/Makefile.in hex-a-hop-1.1.0/data/Makefile.in +--- hex-a-hop-1.1.0.orig/data/Makefile.in 2009-11-01 09:09:08.000000000 -0200 ++++ hex-a-hop-1.1.0/data/Makefile.in 2016-01-06 11:01:17.357869408 -0300 +@@ -201,32 +201,8 @@ + sound-used-jump.ogg.xml \ + sound-win.ogg.xml + +-nonfreedata = \ +- music-ending-nonfree.ogg \ +- music-game-nonfree.ogg \ +- music-game-nonfree-1.ogg \ +- sound-builder-nonfree.ogg \ +- sound-collapse-nonfree.ogg \ +- sound-found-antiice-nonfree.ogg \ +- sound-found-jump-nonfree.ogg \ +- sound-lift-down-nonfree.ogg \ +- sound-lift-up-nonfree.ogg \ +- sound-spinner-nonfree.ogg +- +-nonfreeinfo = \ +- music-ending-nonfree.ogg.xml \ +- music-game-nonfree-1.ogg.xml \ +- music-game-nonfree.ogg.xml \ +- sound-builder-nonfree.ogg.xml \ +- sound-collapse-nonfree.ogg.xml \ +- sound-found-antiice-nonfree.ogg.xml \ +- sound-found-jump-nonfree.ogg.xml \ +- sound-lift-down-nonfree.ogg.xml \ +- sound-lift-up-nonfree.ogg.xml \ +- sound-spinner-nonfree.ogg.xml +- +-data_DATA = $(freedata) $(nonfreedata) +-EXTRA_DIST = $(freedata) $(freeinfo) $(nonfreedata) $(nonfreeinfo) ++data_DATA = $(freedata) ++EXTRA_DIST = $(freedata) $(freeinfo) + all: all-am + + .SUFFIXES: |