summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 45f3f3163aceb2d690e4f13d265b0d9ecf6fa8b9 (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
51
52
53
# Maintainer: Michael Taboada <michael@2mb.solutions>
# Maintainer: Storm Dragon <stormdragon2976@gmail.com>
pkgname=horseshoes
pkgver=1.0.7
pkgrel=1
pkgdesc="Audio only game of horseshoes."
arch=('armv7h' 'aarch64' 'i686' 'x86_64')
url="https://2mb.games/games/horseshoes"
license=('MIT')
depends=('speech-dispatcher' 'allegro')
makedepends=('git')
optdepends=('espeak: TTS support'
	'festival: TTS support'
	'flite: TTS support')
source=("git+https://git.2mb.codes/~lilmike/${pkgname}"
        "$pkgname.desktop"
        "$pkgname.sh")
md5sums=('SKIP'
        '7be0952ea7c4286f9f64d39bd98f1497'
         '8f6e9504843af79b9a3761d833c2fdb9')

prepare()
{
  cd "$srcdir"
  cd "$pkgname"
  git checkout v${pkgver}
  git submodule update --init
  patch -p0 -i fix-warning.patch
}

build()
{
  cd "$pkgname"
  make package
}

package()
 {
  cd "$pkgname"
  install -d "$pkgdir/opt/horseshoes"
  cd packages
  _packagefile="$(ls -1 *.tar.xz |head -n1)"
  tar xf $_packagefile
  cp -r ${_packagefile/.tar.xz//}/* "${pkgdir}/opt/$pkgname/"
  # Remove libraries that are installed already on arch from the directory
  rm -rf "${pkgdir}/opt/$pkgname/lib"
  # execute bit for horseshoes
  chmod 755 "${pkgdir}/opt/$pkgname/$pkgname"
  install -Dm755 "${srcdir}/${pkgname}.sh" "$pkgdir/usr/bin/${pkgname}"
  install -Dm644 "${srcdir}/${pkgname}.desktop" "$pkgdir/usr/share/applications/${pkgname}.desktop"
  }

# vim:set ts=2 sw=2 et: