summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: acfeb0ef24494a52bd03b280baa726a1ed9d2290 (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
# Maintainer: Marcel Unbehaun <f.rostze.ux at gmail dot com>
# previous work:
# Contributor: Anntoin Wilkinson <anntoin gmail com>
# Contributor: Nick B <Shirakawasuna at gmail _dot_com>
# Maintainer: SanskritFritz (gmail)

pkgname=torus-trooper
pkgver=0.22
pkgrel=3
url="http://www.asahi-net.or.jp/~cs8k-cyu/windows/tt_e.html"
pkgdesc="Fast-paced abstract scrolling shooter game"
license=('custom')
depends=(libbulletml gcc-d sdl sdl_mixer)
arch=('x86_64')
source=(http://deb.debian.org/debian/pool/main/t/$pkgname/torus-trooper_$pkgver.dfsg1.orig.tar.gz
    http://ftp.debian.org/debian/pool/main/t/$pkgname/torus-trooper_$pkgver.dfsg1-13.debian.tar.xz)
md5sums=('a88b2f2b0a6e4abccda657d83385f375'
         '5b65c38f53e455d84a8aca3aea7c5857')

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

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

package() {
  cd "$srcdir"/tt
  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 images -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/"}{} \;

  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"
}