29 lines
538 B
Python
29 lines
538 B
Python
from lib.make import *
|
|
from lib import cpp
|
|
|
|
|
|
version("3.2")
|
|
description("The Netwide Assembler")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_url("https://www.nasm.us/pub/nasm/releasebuilds/3.02/nasm-3.02.tar.gz")
|
|
|
|
builddep("shortcut/c")
|
|
builddep("shortcut/autotools")
|
|
builddep("libz-dev @target")
|
|
|
|
|
|
def build():
|
|
cpp.configure([
|
|
f"--prefix={get_prefix('nasm')}",
|
|
])
|
|
cpp.make()
|
|
cpp.make_install()
|
|
|
|
on_build(build)
|
|
|
|
|
|
package("nasm")
|
|
dep("semi-libc @same-arch")
|
|
dep("libz @same-arch")
|
|
cpp.use_auto_pack(["bin"])
|