Compare commits

...

7 Commits

2 changed files with 36 additions and 4 deletions

View File

@ -1,10 +1,23 @@
PREFIX ?= /usr
FILE = figa FILE = figa
EXEC = figasm
all: all:
as -o $(FILE).o $(FILE).s @as -o $(FILE).o $(FILE).s
ld -o $(FILE) $(FILE).o @ld -o $(EXEC) $(FILE).o
clean:
@rm $(FILE).o
@rm $(EXEC)
install:
@mkdir -p $(DESTDIR)$(PREFIX)/bin
@cp -p $(EXEC) $(DESTDIR)$(PREFIX)/bin/figasm
uninstall:
@rm $(DESTDIR)$(PREFIX)/bin/figasm
debug: debug:
as -g -o $(FILE).o $(FILE).s @as -g -o $(FILE).o $(FILE).s
ld -o $(FILE) $(FILE).o @ld -o $(EXEC) $(FILE).o

19
PKGBUILD Normal file
View File

@ -0,0 +1,19 @@
pkgname=figasm
pkgver=69.420
pkgrel=1
pkgdesc="figasm è una semplice port in Assembly del celebre figa"
arch=('x86_64')
url="https://git.ignuranza.net/chic_luke/figasm.git"
license=('SWAG')
makedepends=('git')
build() {
git clone "${url}"
}
package() {
cd "${pkgname}"
make
make DESTDIR="$pkgdir" install
}