blob: 02974772a5a55748e2ed956a7a6af6452e52c45f (
plain) (
blame)
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
|
#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)
aasm -lk "\$FNAME.kmd" "\$1"
EOS
cat << EOS > kmd_compile_script
#!/bin/sh
KMD_DIR=/usr/local/kmd
CURR_DIR=\$(pwd)
FILE=\$(realpath \$1)
cd "\$KMD_DIR"
./kmd_compile \$FILE
cd "\$CURR_DIR"
EOS
}
package() {
mkdir -p "$pkgdir/usr/local/kmd"
cd "$srcdir/aasm"
cp aasm "$pkgdir/usr/local/kmd/aasm"
install -Dm755 kmd_compile_script "$pkgdir/usr/bin/kmd_compile"
install -Dm755 aasm "$pkgdir/usr/bin/aasm"
install -Dm755 kmd_compile "$pkgdir/usr/local/kmd/kmd_compile"
install -Dm755 mnemonics "$pkgdir/usr/local/kmd/mnemonics"
}
|