36 lines
731 B
Python
36 lines
731 B
Python
import os
|
|
|
|
from lib import cpp
|
|
from lib.make import *
|
|
|
|
|
|
version("3.6.6")
|
|
description("A C/C++ implementation of a Sass compiler")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_managed("github://sass/libsass#3.6.6")
|
|
|
|
builddep("shortcut/c++")
|
|
builddep("shortcut/autotools")
|
|
|
|
|
|
def build():
|
|
os.environ["PREFIX"] = "/"
|
|
os.environ["DESTDIR"] = os.getcwd() + "/../cpp_install"
|
|
cpp.make(["install-shared"])
|
|
cpp.make(["install-static"])
|
|
os.chdir("../cpp_install")
|
|
|
|
on_build(build)
|
|
|
|
|
|
package("libsass")
|
|
dep("libcxx @same-arch")
|
|
dep("semi-libc @same-arch")
|
|
cpp.use_auto_pack(["lib"])
|
|
|
|
package("libsass-dev")
|
|
dep("libsass (same)")
|
|
dep("libcxx-dev @same-arch")
|
|
dep("semi-libc-dev @same-arch")
|
|
cpp.use_auto_pack(["dev"])
|