summary refs log tree commit diff
path: root/aasm
diff options
context:
space:
mode:
authorManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-10-15 14:46:11 +0100
committerManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-10-15 14:46:11 +0100
commit48c211537796486d782c100cc3deb99e8acfad04 (patch)
treeda76674f4b68b8c6776983759d905bc4ef1d2167 /aasm
parentAlmost final fix pkbuild (diff)
downloadkomodo-48c211537796486d782c100cc3deb99e8acfad04.tar.gz
komodo-48c211537796486d782c100cc3deb99e8acfad04.tar.bz2
komodo-48c211537796486d782c100cc3deb99e8acfad04.zip
Went back to old Pkbuild
Diffstat (limited to 'aasm')
-rw-r--r--aasm/PKGBUILD17
1 files changed, 3 insertions, 14 deletions
diff --git a/aasm/PKGBUILD b/aasm/PKGBUILD
index 0297477..cdcafd9 100644
--- a/aasm/PKGBUILD
+++ b/aasm/PKGBUILD
@@ -18,17 +18,8 @@ build() {
   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"
+FNAME=$(echo "$1" | sed s/.s//g)
+/usr/local/kmd/aasm -lk "$FNAME.kmd" "$1"
 EOS
 }
 
@@ -36,9 +27,7 @@ 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 kmd_compile "$pkgdir/usr/bin/kmd_compile"
   install -Dm755 mnemonics "$pkgdir/usr/local/kmd/mnemonics"
 }
-