You are not logged in.
I'm in the process of making a PKGBUILD (my first) for AASM, a compiler for ARM assembly, used with the debugger KMD.
Firstly, the only page with any information that I could find says "This software is available free for educational purposes" in regards to licensing, and that "this software comes without any support whatsoever".
I would assume this would mean a custom license, but I'm unsure exactly what should be done.
Also, what is the correct method of installing binary files and scripts? Running my PKGBUILD gives me "install: cannot create regular file '/usr/bin/aasm': Permission denied", despite this seemingly being the way other PKGBUILDs handle this:
install -Dm755 aasm /usr/bin/aasm
Here's the full PKGBUILD:
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: Non-commercial')
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$//`
aasm -lk ${FNAME}.kmd $1
EOS
}
package() {
cd "$srcdir/aasm"
install -Dm755 aasm /usr/bin/aasm
install -Dm755 kmd_compile /usr/bin/kmd_compile
}
Thanks for any help
Last edited by boxama (2016-10-31 21:29:40)
Offline
I can't comment on the licensing issue, but regarding the 'install' problem -- you are trying to install directly to the live filesystem, instead you should be installing to the fake root, "$pkgdir". See https://wiki.archlinux.org/index.php/Cr … kage.28.29
I recommend reading through the entire Creating packages page, as well as https://wiki.archlinux.org/index.php/Ar … _standards
Mod note: Moving to creating and modifying packages.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Online
Just putting "custom" for the license should be fine.
You need to install everything to $pkgdir, not directly into the filesystem.
Offline
I really should have noticed the $pkgdir part, thanks for the clarification on both of my issues
Offline