summaryrefslogtreecommitdiff
path: root/libre/hex-a-hop/PKGBUILD
blob: 2380a0b7057dccc1cc584b99b88fa094291b2200 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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@hyperbola.info>
# Contributor: Rnuomer <lessthan3@airmail.cc>

pkgname=hex-a-hop
pkgver=1.1.0
pkgrel=5.parabola2
pkgdesc='Hex-a-hop is a puzzle game based on hexagonal tiles, without nonfree music data'
arch=('i686' 'x86_64' 'armv7h')
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
}