diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2015-11-21 15:26:33 +0100 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2015-11-21 15:26:33 +0100 |
commit | adc45bc8887631217860443b9a1b576320fa347b (patch) | |
tree | 390680fee1d017a31c9ad499b0279d2e4dc47218 /testing/spim | |
parent | f13db13c08d419f70dc3c40c5ecbb87ed34297b1 (diff) | |
download | aports-adc45bc8887631217860443b9a1b576320fa347b.tar.bz2 aports-adc45bc8887631217860443b9a1b576320fa347b.tar.xz |
testing/spim: new aport
Diffstat (limited to 'testing/spim')
-rw-r--r-- | testing/spim/APKBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/spim/APKBUILD b/testing/spim/APKBUILD new file mode 100644 index 000000000..6dac1c743 --- /dev/null +++ b/testing/spim/APKBUILD @@ -0,0 +1,48 @@ +# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net> +# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net> +pkgname=spim +pkgver=8.0 +pkgrel=0 +pkgdesc="Simulator for MIPS32" +url="http://spimsimulator.sourceforge.net/" +arch="all" +license="BSD" +depends="" +depends_dev="" +makedepends="bash bison" +install="" +subpackages="$pkgname-doc" +source="http://pages.cs.wisc.edu/~larus/SPIM/${pkgname}-${pkgver}.tar.gz" + +_builddir="$srcdir"/$pkgname-$pkgver +prepare() { + sed -i "$_builddir"/$pkgname/Makefile \ + -e 's:CFLAGS =:CFLAGS +=:' \ + -e 's:LDFLAGS =:LDFLAGS +=:' \ + -e 's:CC = gcc:CC ?= gcc:' || return 1 +} + +build() { + cd "$_builddir"/$pkgname + CC="$CC" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" \ + ./Configure || return 1 + make EXCEPTION_DIR="/usr/share/spim" || return 1 +} + +package() { + cd "$_builddir" + make EXCEPTION_DIR="$pkgdir/usr/share/spim" \ + BIN_DIR="$pkgdir/usr/bin" \ + -C "$_builddir"/$pkgname install || return 1 + + install -Dm644 Documentation/spim.man \ + "$pkgdir"/usr/share/man/man1/spim.1 || return 1 + for i in ChangeLog Documentation/BLURB README VERSION; do + install -Dm644 $i \ + "$pkgdir"/usr/share/doc/$pkgname/${i##*/} || return 1 + done +} + +md5sums="146558e8256f2b7577fb825fdc76a04f spim-8.0.tar.gz" +sha256sums="6f205776cb9fa112729507008843b289012190ed3131cbd426c610a58387ee4b spim-8.0.tar.gz" +sha512sums="c4eb66863a931b74d6c6ecd92860d16fd6369c85caecba1e71a1149e73e708502d1070f17a9beb6d0af1368db1ee5a85c040b596866a1236275cdd410a661adf spim-8.0.tar.gz" |