SUMMARY="Portable GAL assembler"
DESCRIPTION="GALasm was created simply because there were no other \
open source GAL assemblers. The assembler core is basically the one of GALer, \
a GAL development environment for the Amiga platform."
HOMEPAGE="https://github.com/dwery/galasm"
COPYRIGHT="1998-2003 Alessandro Zummo
1991-96 Christian Habermann"
LICENSE="galer"
SOURCE_URI="https://github.com/dwery/galasm/archive/3aeee938852e66ce68b02d51a61cc4845ae4d15f.tar.gz"
SOURCE_DIR="galasm-3aeee938852e66ce68b02d51a61cc4845ae4d15f"
SOURCE_FILENAME="$portName-$portVersion.tar.gz"
CHECKSUM_SHA256="774c4e14b409c0ff18f6ea9d17d949b22e852bd34f82bcd387b45f331a70a2f4"
REVISION="1"

ARCHITECTURES="?all x86_gcc2"

PROVIDES="
	galasm = $portVersion
	cmd:galasm
	"
REQUIRES="
	haiku$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	"
BUILD_PREREQUIRES="
	cmd:make
	cmd:gcc$secondaryArchSuffix
	"

BUILD()
{
	cd src
	make $jobArgs
}

INSTALL()
{
	mkdir -p $binDir
	cp src/galasm $binDir

	mkdir -p $docDir
	cp -r galer/* $docDir
}
