summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3d06cb7080839e1a55c4dba2b3f8310388f866ea (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
54
55
56
57
# Maintainer: Michael DeGuzis <mdeguzis@gmail.com>

pkgname=mrboom-git
_basename=mrboom
pkgver=4.8.r0.g8f67ebf
pkgrel=1
pkgdesc="Mr.Boom is a 8 players Bomberman clone"
arch=('i686' 'x86_64')
conflicts=('mrboom')
provides=('mrboom')
url="http://mrboom.mumblecore.org"
license=('GPL2')
makedepends=(
			 'git'
			 'libmodplug'
			 'minizip'
			 'sdl2'
			 'sdl2_mixer'
			)
source=('mrboom-git::git+https://github.com/Javanaise/mrboom-libretro'
		'mrboom.desktop'
		'mrboom.svg')
md5sums=(
		 'SKIP'
		 '780a2c3ad5ecd62870d31fd584ab2802'
		 'dcfe4201b7e8a347ee7fc4de6f90c427'
		)

pkgver() {

  cd "$pkgname"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  
  cd "$srcdir/$pkgname"
  make PREFIX=/usr mrboom LIBSDL2=1

}

package() {

  cd "$srcdir/$pkgname"

  # Install main binary
  install -d "$pkgdir/usr/bin"
  install -d "$pkgdir/usr/man"
  install -d "$pkgdir/usr/share/doc"
  make PREFIX=/usr DESTDIR="$pkgdir" install

  # supplemental files
  install -Dm644 "$srcdir/$_basename.desktop" "$pkgdir/usr/share/applications/mrboom.desktop"
  install -Dm644 "$srcdir/$_basename.svg" "$pkgdir/usr/share/pixmaps/mrboom.svg"
  install -Dm644 "README.md" "$pkgdir/usr/share/doc/$pkgname"

}