From f9cd962a177963870a1e2685ce4bf7531d673956 Mon Sep 17 00:00:00 2001 From: Manuel Palenzuela Date: Tue, 15 Oct 2019 14:08:48 +0100 Subject: Almost final fix pkbuild --- aasm/PKGBUILD | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'aasm') diff --git a/aasm/PKGBUILD b/aasm/PKGBUILD index 6480123..0297477 100644 --- a/aasm/PKGBUILD +++ b/aasm/PKGBUILD @@ -1,4 +1,4 @@ -# Maintainer: bill +#Maintainer: bill pkgname=kmd-compile-aasm pkgver=20120816 pkgrel=1 @@ -20,13 +20,25 @@ build() { #!/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/bin/kmd_compile" - #install -Dm755 mnemonics "$pkgdir/usr/bin/mnemonics" + install -Dm755 kmd_compile "$pkgdir/usr/local/kmd/kmd_compile" + install -Dm755 mnemonics "$pkgdir/usr/local/kmd/mnemonics" } -- cgit 1.4.1