33 lines
592 B
Python
33 lines
592 B
Python
import os
|
|
|
|
import lib.cpp as cpp
|
|
from lib.make import *
|
|
|
|
version("2.8.1")
|
|
description("Fast streaming XML parser written in C99")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_url(
|
|
"https://github.com/libexpat/libexpat/releases/download/R_2_8_1/expat-2.8.1.tar.gz"
|
|
)
|
|
|
|
|
|
def build():
|
|
cpp.cmake()
|
|
cpp.ninja()
|
|
cpp.ninja_install()
|
|
|
|
|
|
on_build(build)
|
|
|
|
package("libexpat")
|
|
cpp.use_auto_pack(["lib"])
|
|
dep("semi-libc @same-arch")
|
|
|
|
package("libexpat-tools")
|
|
cpp.use_auto_pack(["bin"])
|
|
dep("libexpat (same)")
|
|
|
|
package("libexpat-dev")
|
|
cpp.use_auto_pack(["dev"])
|
|
dep("libexpat (same)")
|