updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / mmixware / PKGBUILD
blobfeddef8d175775acb30690b7eaf2a5c41fdf3286
1 # Maintainer: Chris Brannon <chris@the-brannons.com>
2 # Contributor: Christoph Neuroth <christoph.neuroth@gmx.net>
3 pkgname=mmixware
4 pkgver=20110831
5 pkgrel=1
6 pkgdesc="A straightforward MMIX assembler and simulator"
7 arch=('i686' 'x86_64')
8 url=http://mmix.cs.hm.edu
9 # The license was taken from src/boilerplate.w.
10 license=('custom')
11 makedepends=(texlive-bin)
12 source=(http://mmix.cs.hm.edu/src/mmix-$pkgver.tar.gz
13         COPYRIGHT)
14 md5sums=('598f28924b6ecf41f2c86d8c6a464e6a'
15          'a2e1fc2dde9b3e6a09f21e1ad65e227f')
16 noextract=("mmix-$pkgver.tar.gz")
18 build() {
19   cd "$srcdir"
20   rm -rf "mmix-$pkgver"
21   mkdir "mmix-$pkgver"
22   cd "mmix-$pkgver"
23   tar -xzf "../mmix-$pkgver.tar.gz"
24   install -m755 -d "$pkgdir/usr/src/$pkgname"
25   install -m644 * "$pkgdir/usr/src/$pkgname"
26   install -D -m644 ../COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/COPYRIGHT"
27   unset MAKEFLAGS
28   make all || return 1
29   install -m755 -d "$pkgdir/usr/bin/" || return 1
30   install -m755 abstime mmix mmixal mmmix mmotype "$pkgdir/usr/bin/" || return 1