summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bc4a4a27a8d36512dd371136021c9eb41b846e78 (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
# Maintainer: Marcel Unbehaun <f.rostze.ux at gmail dot com>
pkgname=tumiki-fighters
pkgver=0.2
pkgrel=2
url="http://www.asahi-net.or.jp/~cs8k-cyu/windows/tf_e.html"
pkgdesc="sticky 2D shooter"
license=('custom')
depends=(libbulletml gcc-d sdl sdl_mixer)
arch=('x86_64')
source=(http://deb.debian.org/debian/pool/main/t/$pkgname/tumiki-fighters_$pkgver.dfsg1.orig.tar.gz
	http://http.debian.net/debian/pool/main/t/$pkgname/tumiki-fighters_$pkgver.dfsg1-10.debian.tar.xz)
md5sums=('3481eaae79df72c0950605c6348311fa'
         '8c50a9b04967476d4598490a5af08128')

prepare() {
  cd "$srcdir"/tf
  for i in $(cat ../debian/patches/series); do
    patch -p1 <../debian/patches/$i
  done
}

build() {
  cd "$srcdir"/tf
  make
}

package() {
  cd "$srcdir"/tf
  mkdir -p "${pkgdir}/usr/bin/"
  install -Dm 755 ${pkgname} -t "${pkgdir}/usr/bin/"
  mkdir -p "${pkgdir}/usr/share/games/$pkgname"

  find barrage -type f -exec install -D -m 644 {,"${pkgdir}/usr/share/games/$pkgname/"}{} \;
  find enemy -type f -exec install -D -m 644 {,"${pkgdir}/usr/share/games/$pkgname/"}{} \;
  find field -type f -exec install -D -m 644 {,"${pkgdir}/usr/share/games/$pkgname/"}{} \;
  find sounds -type f -exec install -D -m 644 {,"${pkgdir}/usr/share/games/$pkgname/"}{} \;
  find stage -type f -exec install -D -m 644 {,"${pkgdir}/usr/share/games/$pkgname/"}{} \;
  find tumiki -type f -exec install -D -m 644 {,"${pkgdir}/usr/share/games/$pkgname/"}{} \;

  install -Dm 644 "$srcdir/debian/$pkgname.xpm" "$pkgdir/usr/share/pixmaps/$pkgname.xpm"
  install -Dm 644 "$srcdir/debian/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
}