summary refs log blame commit diff
path: root/aasm/PKGBUILD
blob: cdcafd9342e51cc8820aa42ec05fb8b2bb074cb0 (plain) (tree)
1
                                   

















                                                                                 
         

                                         
   


           
                                  
                   
                                      
                                            
                                                          
                                                            
 
#Maintainer: bill <wpkp34 on gmail>
pkgname=kmd-compile-aasm
pkgver=20120816
pkgrel=1
pkgdesc='ARM compiler for kmd (Komodo Manchester Debugger)'
arch=('i386' 'x86_64')
url='https://studentnet.cs.manchester.ac.uk/resources/software/komodo/assembler/'
license=('custom')
depends=('kmd')
makedepends=('git' 'gcc')

source=('aasm'::'git+https://github.com/UoMCS/aasm.git')

md5sums=('SKIP')

build() {
  cd "$srcdir/aasm"
  gcc aasm.c -o aasm
  cat << EOS > kmd_compile
#!/bin/sh
FNAME=$(echo "$1" | sed s/.s//g)
/usr/local/kmd/aasm -lk "$FNAME.kmd" "$1"
EOS
}

package() {
  mkdir -p "$pkgdir/usr/local/kmd"
  cd "$srcdir/aasm"
  cp aasm "$pkgdir/usr/local/kmd/aasm"
  install -Dm755 aasm "$pkgdir/usr/bin/aasm"
  install -Dm755 kmd_compile "$pkgdir/usr/bin/kmd_compile"
  install -Dm755 mnemonics "$pkgdir/usr/local/kmd/mnemonics"
}