forked from semios/semios-packages
26 lines
451 B
Python
26 lines
451 B
Python
import os
|
|
import subprocess
|
|
|
|
from lib import arch, cpp
|
|
from lib.make import *
|
|
|
|
version("1.14.6")
|
|
source_url("https://mandoc.bsd.lv/snapshots/mandoc-1.14.6.tar.gz")
|
|
|
|
builddep("shortcut/c")
|
|
builddep("shortcut/autotools")
|
|
builddep(f"libz-ng-dev @{arch.get_target()}")
|
|
|
|
|
|
def build():
|
|
cpp.configure()
|
|
cpp.make([f"CC={os.environ['CC']}"])
|
|
cpp.make_install()
|
|
|
|
|
|
on_build(build)
|
|
|
|
package("mandoc")
|
|
dep("libz @same-arch")
|
|
cpp.use_auto_pack(["bin"])
|