You are not logged in.

#1 2016-10-24 13:49:47

boxama
Member
Registered: 2016-10-24
Posts: 2

Ambiguous license and 'install'ing binaries and scripts

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

#2 2016-10-24 13:56:04

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,784
Website

Re: Ambiguous license and 'install'ing binaries and scripts

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

#3 2016-10-24 13:56:32

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,461

Re: Ambiguous license and 'install'ing binaries and scripts

Just putting "custom" for the license should be fine.

You need to install everything to $pkgdir, not directly into the filesystem.

Offline

#4 2016-10-24 14:10:36

boxama
Member
Registered: 2016-10-24
Posts: 2

Re: Ambiguous license and 'install'ing binaries and scripts

I really should have noticed the $pkgdir part, thanks for the clarification on both of my issues

Offline

Board footer

Powered by FluxBB