summaryrefslogtreecommitdiff
path: root/community/uqm/PKGBUILD
blob: 4d82315d6006409bfa5abed1c3fc3a632f91545b (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
58
59
# Maintainer : Laurent Carlier <lordheavym@gmail.com>
# Maintainer : Daenyth <Daenyth+Arch _AT_ gmail _DOT_ com>
# Contributor : wizzomafizzo <wizzomafizzo@gmail.com>
# Contributor: tochiro@no.spam.mail.berlios.de
# Contributor: sh__

pkgname=uqm
pkgver=0.7.0
pkgrel=1
pkgdesc="The Ur-Quan Masters is a port of Star Control 2"
arch=('i686' 'x86_64')
url="http://sc2.sf.net/"
license=('GPL')
depends=('libmikmod' 'libvorbis' 'sdl_image' 'libgl')
makedepends=('imagemagick' 'mesa' 'namcap')
optdepends=('uqm-sound: For extra music and conversation audio')
source=(http://downloads.sourceforge.net/sourceforge/sc2/uqm-${pkgver}-source.tgz
        http://downloads.sourceforge.net/sourceforge/sc2/uqm-${pkgver}-content.uqm
        config.state
        uqm
        uqm.desktop
        uqm.png)
noextract=(uqm-${pkgver}-content.uqm)
md5sums=('f9018ea0493d7dac6a9e1006b00af7df'
         '2f36dcb15274dbbcb5e266f2ed84d5b2'
         '07f0a0e74a0b1c706940cc43d5a4160c'
         '07e64632fce6323a14ab558d0214b885'
         '44c83b9b9d102b99210af0036749a318'
         '06d0a72aa18e7edce6cd3c7a3a747c44')

build() {
  cd $srcdir/$pkgname-$pkgver
  
  cp $srcdir/config.state .
  sed -e "/INPUT_install_prefix/ s|replaceme|$pkgdir/usr|" \
      -i config.state

  echo | ./build.sh uqm config

  ./build.sh uqm
}

package() {
  cd $srcdir/$pkgname-$pkgver

  ./build.sh uqm install

  install -Dm644 $srcdir/$pkgname-$pkgver-content.uqm \
     $pkgdir/usr/share/uqm/content/packages/$pkgname-$pkgver-content.uqm

  # stolen from fedora!
  install -Dm644 $srcdir/uqm.desktop \
     $pkgdir/usr/share/applications/uqm.desktop
  install -Dm644 $srcdir/uqm.png \
     $pkgdir/usr/share/pixmaps/uqm.png

  rm $pkgdir/usr/bin/uqm
  install -Dm755 $srcdir/uqm $pkgdir/usr/bin/uqm
}