32 lines
660 B
Python
32 lines
660 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_managed("github://sabotage-linux/gettext-tiny#v0.3.3")
|
|
|
|
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"])
|