34 lines
716 B
Python
34 lines
716 B
Python
import os
|
|
|
|
from lib import cpp
|
|
from lib.make import *
|
|
|
|
version("0.3.3")
|
|
description("small implementation of gettext and libintl")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_url(
|
|
"https://github.com/sabotage-linux/gettext-tiny/releases/download/v0.3.3/gettext-tiny-0.3.3.tar.xz"
|
|
)
|
|
|
|
builddep("shortcut/c")
|
|
builddep("shortcut/autotools")
|
|
|
|
|
|
def build():
|
|
cpp.make(["LIBINTL=musl"])
|
|
cpp.make_install(
|
|
["LIBINTL=musl", "DESTDIR=../cpp_install", "prefix=/"], chdir=False, move=False
|
|
)
|
|
os.chdir("../cpp_install")
|
|
|
|
|
|
on_build(build)
|
|
|
|
package("libintl-dev")
|
|
dep("semi-libc-dev @same-arch")
|
|
cpp.use_auto_pack(["dev"])
|
|
|
|
package("gettext")
|
|
dep("semi-libc @same-arch")
|
|
cpp.use_auto_pack(["bin"])
|