summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 47cf35ae3eb6642e37ff17e336f703d8e1652b3e (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
# 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=('87301bc87b5a06e525f228d073428895')

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

build() {
  cd "$srcdir"
  make
}

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