forked from semios/semios-packages
Compare commits
1
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)
|
||||||
|
|||||||
@@ -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