forked from semios/semios-packages
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3022b06b20 |
@@ -1,5 +1,4 @@
|
|||||||
import os
|
import os
|
||||||
import stat
|
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
from lib import common
|
from lib import common
|
||||||
@@ -20,7 +19,4 @@ def autostrip(composer):
|
|||||||
continue
|
continue
|
||||||
if not _is_elf(ent.path):
|
if not _is_elf(ent.path):
|
||||||
continue
|
continue
|
||||||
oldperm = stat.S_IMODE(os.stat(ent.path).st_mode)
|
|
||||||
os.chmod(ent.path, 0o777)
|
|
||||||
subprocess.run([strip, ent.path], check=True)
|
subprocess.run([strip, ent.path], check=True)
|
||||||
os.chmod(ent.path, oldperm)
|
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ def build():
|
|||||||
)
|
)
|
||||||
cpp.make()
|
cpp.make()
|
||||||
cpp.make_install()
|
cpp.make_install()
|
||||||
|
os.chmod("bin/bmake", 0o655)
|
||||||
|
|
||||||
|
|
||||||
on_build(build)
|
on_build(build)
|
||||||
|
|||||||
@@ -1,37 +0,0 @@
|
|||||||
import subprocess
|
|
||||||
|
|
||||||
from lib import cpp
|
|
||||||
from lib.make import *
|
|
||||||
|
|
||||||
version("2.55.0")
|
|
||||||
source_url("https://www.kernel.org/pub/software/scm/git/git-2.55.0.tar.gz")
|
|
||||||
|
|
||||||
|
|
||||||
def build():
|
|
||||||
cpp.configure(
|
|
||||||
[
|
|
||||||
"--prefix=",
|
|
||||||
"--with-gitconfig=/var/config/git/config.ini",
|
|
||||||
"--with-gitattributes=/var/config/git/attributes.txt",
|
|
||||||
]
|
|
||||||
)
|
|
||||||
cpp.make(["RUNTIME_PREFIX=YesPlease"])
|
|
||||||
cpp.make_install()
|
|
||||||
|
|
||||||
|
|
||||||
on_build(build)
|
|
||||||
|
|
||||||
|
|
||||||
def pack_git(composer):
|
|
||||||
composer.add_dir("bin", "bin")
|
|
||||||
composer.add_dir("libexec", "libexec")
|
|
||||||
composer.makedir("share")
|
|
||||||
composer.add_dir("share/git-core", "share/git-core")
|
|
||||||
composer.add_dir("share/gitweb", "share/gitweb")
|
|
||||||
composer.add_dir("share/perl5", "share/perl5")
|
|
||||||
|
|
||||||
|
|
||||||
package("git")
|
|
||||||
dep("semi-libc @same-arch")
|
|
||||||
dep("libz @same-arch")
|
|
||||||
on_pack(pack_git)
|
|
||||||
@@ -34,12 +34,7 @@ dep("libzstd @same-arch")
|
|||||||
package("libarchive-tools")
|
package("libarchive-tools")
|
||||||
cpp.use_auto_pack(["bin"])
|
cpp.use_auto_pack(["bin"])
|
||||||
dep("libarchive (same)")
|
dep("libarchive (same)")
|
||||||
provide("tar")
|
provide("bsdtar")
|
||||||
provide("cpio")
|
|
||||||
provide("unzip")
|
|
||||||
link("bin/bsdtar", "/bin/tar")
|
|
||||||
link("bin/bsdcpio", "/bin/cpio")
|
|
||||||
link("bin/bsdunzip", "/bin/unzip")
|
|
||||||
|
|
||||||
package("libarchive-dev")
|
package("libarchive-dev")
|
||||||
cpp.use_auto_pack(["dev"])
|
cpp.use_auto_pack(["dev"])
|
||||||
|
|||||||
@@ -0,0 +1,28 @@
|
|||||||
|
from lib import cpp
|
||||||
|
from lib.make import *
|
||||||
|
|
||||||
|
version("1.6.1")
|
||||||
|
source_url("https://downloads.xiph.org/releases/opus/opus-1.6.1.tar.gz")
|
||||||
|
|
||||||
|
|
||||||
|
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"])
|
||||||
@@ -12,6 +12,7 @@ def build():
|
|||||||
cpp.configure()
|
cpp.configure()
|
||||||
cpp.make([f"CC={os.environ['CC']}"])
|
cpp.make([f"CC={os.environ['CC']}"])
|
||||||
cpp.make_install()
|
cpp.make_install()
|
||||||
|
subprocess.run(["sh", "-c", "chmod +w bin/* sbin/*"], check=True)
|
||||||
|
|
||||||
|
|
||||||
on_build(build)
|
on_build(build)
|
||||||
|
|||||||
Reference in New Issue
Block a user