summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fab714eca1470dae216b2a405e6a61b4a3d302fd (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
# Maintainer: Lukas Fleischer <lfleischer@archlinux.org>
# Maintainer: Thomas Queiroz <thomasqueirozb@gmail.com>
# Maintainer: Moon Sungjoon <sumoon at seoulsaram dot org>
# Contributor: Lukas Jirkovsky <l.jirkovsky@gmail.com>

pkgname=qtspim
pkgver=9.1.24
pkgrel=1
pkgdesc="New user interface for spim, a MIPS simulator."
arch=('x86_64')
url="http://spimsimulator.sourceforge.net/"
license=('BSD')
depends=('qt5-base')
makedepends=('qt5-tools' 'subversion' 'icu' 'bison')
source=("svn://svn.code.sf.net/p/spimsimulator/code/#revision=764")
sha256sums=('SKIP')

build() {
  cd "$srcdir/code/QtSpim"

  qmake
  sed -i 's|$(COPY) help/qtspim.qhc help/qtspim.qhc;||' Makefile
  make
}

package() {
  cd "$srcdir/code"

  install -D QtSpim/QtSpim "$pkgdir/usr/bin/qtspim"

  install -d "$pkgdir/usr/share/qtspim"
  cp -r QtSpim/help "$pkgdir/usr/share/qtspim"

  install -Dm644 Documentation/spim.man "$pkgdir/usr/share/man/man1/qtspim.1"
  install -Dm644 Setup/qtspim_debian_deployment/qtspim.desktop \
    "$pkgdir/usr/share/applications/qtspim.desktop"
  install -Dm644 Setup/qtspim_debian_deployment/copyright \
    "$pkgdir/usr/share/licenses/$pkgname/copyright"
  install -Dm644 Setup/NewIcon48x48.png "$pkgdir/usr/share/qtspim/qtspim.png"
}