summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b6f64bd967fdfc68e1e1ac89d5901851fdd75b55 (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
# Maintainer: Kyle Keen <keenerd@gmail.com>
# Contributor: Army <uli armbruster google>

pkgname=sst
pkgver=1.0.1
pkgrel=3
arch=('i686' 'x86_64')
license=('GPL')
pkgdesc="The Classic Super Star Trek Game"
url="http://www.almy.us/sst.html"
depends=('glibc')
source=(http://www.almy.us/files/sstsrc.zip)
md5sums=('23f3ba0f3f0d4e9613893691d3040bac')

build() {
  cd "$srcdir/sstsrc"
  # adjust the path of the documentation
  sed 's|"sst.doc"|"/usr/share/doc/sst/sst.doc"|g' -i sst.c
  make
}

package() {
  # binary
  install -Dm755 "$srcdir/sstsrc/sst" "$pkgdir/usr/bin/sst"
  # documentation
  install -Dm644 "$srcdir/sstsrc/sst.doc" "$pkgdir/usr/share/doc/$pkgname/sst.doc"
}