34 lines
700 B
Python
34 lines
700 B
Python
from lib.make import *
|
|
from lib import cpp
|
|
|
|
|
|
version("4.0.50")
|
|
description("tools for reading and writing FAT filesystems")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_url("https://ftp.gnu.org/gnu/mtools/mtools-4.0.50.tar.gz")
|
|
|
|
builddep("shortcut/c")
|
|
builddep("shortcut/autotools")
|
|
builddep("semios-charset-cp850 @target")
|
|
builddep("semios-charset-wchar-t @target")
|
|
|
|
|
|
def build():
|
|
cpp.configure([
|
|
f"--prefix={get_prefix('mtools')}",
|
|
])
|
|
cpp.make()
|
|
cpp.make_install()
|
|
|
|
on_build(build)
|
|
|
|
|
|
def pack(composer):
|
|
composer.add("bin")
|
|
|
|
package("mtools")
|
|
dep("semi-libc @same-arch")
|
|
dep("semios-charset-cp850 @same-arch")
|
|
dep("semios-charset-wchar-t @same-arch")
|
|
on_pack(pack)
|