summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8af3e587453b7410baecb1a5deca562b3cb9994d (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
# Maintainer: Chih-Hsuan Yen <yan12125@gmail.com>

pkgname=spim-svn
pkgver=717
pkgrel=1
pkgdesc="A MIPS32 simulator (SVN version)"
arch=('i686' 'x86_64')
url="https://sourceforge.net/projects/spimsimulator/"
license=('custom:BSD')
groups=('emulators')
depends=('glibc')
makedepends=('subversion')
conflicts=('spim')
provides=("spim=$pkgver")

_svntrunk='svn+https://svn.code.sf.net/p/spimsimulator/code'
source=("$_svntrunk/spim"
        "$_svntrunk/CPU"
        "$_svntrunk/Tests")
sha256sums=('SKIP'
            'SKIP'
            'SKIP')

pkgver() {
  cd spim

  local ver="$(svnversion)"
  printf "${ver//[[:alpha:]]}"
}

build() {
  cd spim

  make
}

check() {
  cd spim

  make test
}

package() {
  cd spim

  make DESTDIR="$pkgdir" install

  install -Dm644 README "$pkgdir"/usr/share/licenses/$pkgname/README
}