summaryrefslogtreecommitdiff
path: root/libre/hex-a-hop/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/hex-a-hop/PKGBUILD')
-rw-r--r--libre/hex-a-hop/PKGBUILD50
1 files changed, 50 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
+}