34 lines
682 B
Python
34 lines
682 B
Python
from lib import cpp
|
|
from lib.make import *
|
|
|
|
version("1.3.6")
|
|
description("Ogg container format libraries")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_url("https://downloads.xiph.org/releases/ogg/libogg-1.3.6.tar.xz")
|
|
|
|
builddep("shortcut/c")
|
|
builddep("shortcut/autotools")
|
|
|
|
|
|
def build():
|
|
cpp.configure(
|
|
[
|
|
"--prefix=/",
|
|
f"--libdir={get_prefix('libogg')}/lib",
|
|
f"--includedir={get_prefix('libogg-dev')}/include",
|
|
]
|
|
)
|
|
cpp.make()
|
|
cpp.make_install()
|
|
|
|
|
|
on_build(build)
|
|
|
|
package("libogg")
|
|
dep("semi-libc @same-arch")
|
|
cpp.use_auto_pack(["lib"])
|
|
|
|
package("libogg-dev")
|
|
dep("libogg (same)")
|
|
cpp.use_auto_pack(["dev"])
|