diff --git a/srcpkgs/fasm/template b/srcpkgs/fasm/template new file mode 100644 index 00000000000..70dd0336f32 --- /dev/null +++ b/srcpkgs/fasm/template @@ -0,0 +1,34 @@ +# Template file for 'fasm' +pkgname=fasm +version=1.73.16 +revision=1 +archs="i686* x86_64*" +wrksrc=fasm +short_desc="Fast assembler for the x86 and x86-64 architectures" +maintainer="Dmitry Bogatov " +license="BSD-2-Clause" +homepage="https://flatassembler.net" +distfiles="https://flatassembler.net/fasm-${version}.tgz" +checksum=f3d87ab5347c315c48644df989a666390c3e4fb0d40daedd19dea242f8a958c9 +nostrip=yes + +case ${XBPS_TARGET_MACHINE} in + i686*) + _fasm=./fasm + _source='source/Linux/fasm.asm' + ;; + x86_64*) + _fasm=./fasm.x64 + _source='source/Linux/x64/fasm.asm' + ;; +esac + +do_build() { + ${_fasm} ${_source} fasm.out +} + +do_install() { + vbin fasm.out fasm + vdoc fasm.txt + vlicense license.txt +}