46 lines
1.2 KiB
Python
46 lines
1.2 KiB
Python
from lib.make import *
|
|
from lib import cpp, arch
|
|
|
|
|
|
version("0.17.5")
|
|
description("libass is a portable subtitle renderer for the ASS/SSA (Advanced Substation Alpha/Substation Alpha) subtitle format.")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_url("https://github.com/libass/libass/releases/download/0.17.5/libass-0.17.5.tar.xz")
|
|
|
|
builddep("shortcut/c")
|
|
builddep("shortcut/autotools")
|
|
builddep("libfontconfig-dev @target")
|
|
builddep("libfribidi-dev @target")
|
|
builddep("libharfbuzz-dev @target")
|
|
builddep("pkgconf @target")
|
|
|
|
|
|
def build():
|
|
cpp.configure([
|
|
"--prefix=/",
|
|
f"--libdir={get_prefix('libass')}/lib",
|
|
f"--includedir={get_prefix('libass-dev')}/include",
|
|
])
|
|
cpp.make()
|
|
cpp.make_install()
|
|
|
|
on_build(build)
|
|
|
|
|
|
package("libass")
|
|
dep("semi-libc @same-arch")
|
|
dep("libfontconfig @same-arch")
|
|
dep("libfreetype @same-arch")
|
|
dep("libharfbuzz @same-arch")
|
|
dep("libfribidi @same-arch")
|
|
cpp.use_auto_pack(["lib"])
|
|
|
|
package("libass-dev")
|
|
dep("semi-libc-dev @same-arch")
|
|
dep("libfontconfig-dev @same-arch")
|
|
dep("libfreetype-dev @same-arch")
|
|
dep("libharfbuzz-dev @same-arch")
|
|
dep("libfribidi-dev @same-arch")
|
|
dep("libass (same)")
|
|
cpp.use_auto_pack(["dev"])
|