34 lines
714 B
Python
34 lines
714 B
Python
from lib import cpp
|
|
from lib.make import *
|
|
|
|
version("1.6.1")
|
|
description("a totally open, royalty-free, highly versatile audio codec")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_url("https://downloads.xiph.org/releases/opus/opus-1.6.1.tar.gz")
|
|
|
|
builddep("shortcut/c")
|
|
builddep("shortcut/autotools")
|
|
|
|
|
|
def build():
|
|
cpp.configure(
|
|
[
|
|
"--prefix=/",
|
|
f"--libdir={get_prefix('libopus')}/lib",
|
|
f"--includedir={get_prefix('libopus-dev')}/include",
|
|
]
|
|
)
|
|
cpp.make()
|
|
cpp.make_install()
|
|
|
|
|
|
on_build(build)
|
|
|
|
package("libopus")
|
|
dep("semi-libc @same-arch")
|
|
cpp.use_auto_pack(["lib"])
|
|
|
|
package("libopus-dev")
|
|
dep("libopus (same)")
|
|
cpp.use_auto_pack(["dev"])
|