forked from semios/semios-packages
Compare commits
1
Commits
meson
..
alsa-utils
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2b3204cb9a |
@@ -8,6 +8,7 @@ source_url("https://www.alsa-project.org/files/pub/lib/alsa-lib-1.2.16.1.tar.bz2
|
|||||||
|
|
||||||
builddep("shortcut/c")
|
builddep("shortcut/c")
|
||||||
builddep("shortcut/autotools")
|
builddep("shortcut/autotools")
|
||||||
|
builddep(f"linux-dev @{arch.get_target()}")
|
||||||
|
|
||||||
|
|
||||||
def build():
|
def build():
|
||||||
|
|||||||
@@ -0,0 +1,35 @@
|
|||||||
|
from lib.make import *
|
||||||
|
from lib import cpp
|
||||||
|
|
||||||
|
version("1.2.16")
|
||||||
|
source_url("https://www.alsa-project.org/files/pub/utils/alsa-utils-1.2.16.tar.bz2")
|
||||||
|
|
||||||
|
builddep("shortcut/c")
|
||||||
|
builddep("shortcut/autotools")
|
||||||
|
builddep("pkgconf")
|
||||||
|
builddep(f"libncurses-dev @{arch.get_target()}")
|
||||||
|
builddep(f"alsa-lib-dev @{arch.get_target()}")
|
||||||
|
builddep(f"libintl-dev @{arch.get_target()}")
|
||||||
|
builddep("gettext")
|
||||||
|
|
||||||
|
def build():
|
||||||
|
cpp.configure([f"--prefix={get_prefix('alsa-utils')}", "--disable-nls"])
|
||||||
|
cpp.make()
|
||||||
|
cpp.make_install()
|
||||||
|
|
||||||
|
on_build(build)
|
||||||
|
|
||||||
|
|
||||||
|
def pack_alsa_utils(composer):
|
||||||
|
composer.add_dir("bin", "bin")
|
||||||
|
composer.add_dir("sbin", "bin", merge=True)
|
||||||
|
composer.add_dir("lib", "lib")
|
||||||
|
composer.makedir("share")
|
||||||
|
composer.add_dir("share/alsa", "share/alsa")
|
||||||
|
composer.add_dir("share/sounds", "share/sounds")
|
||||||
|
|
||||||
|
package("alsa-utils")
|
||||||
|
dep("semi-libc @same-arch")
|
||||||
|
dep("alsa-lib @same-arch")
|
||||||
|
dep("libncurses @same-arch")
|
||||||
|
on_pack(pack_alsa_utils)
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
import subprocess
|
|
||||||
|
|
||||||
from lib.make import *
|
|
||||||
|
|
||||||
version("1.11.2")
|
|
||||||
source_url("https://github.com/mesonbuild/meson/releases/download/1.11.2/meson-1.11.2.tar.gz")
|
|
||||||
|
|
||||||
builddep("python")
|
|
||||||
|
|
||||||
|
|
||||||
def build():
|
|
||||||
subprocess.run([
|
|
||||||
"python3",
|
|
||||||
"./packaging/create_zipapp.py",
|
|
||||||
"--outfile",
|
|
||||||
"meson",
|
|
||||||
"--interpreter",
|
|
||||||
"/bin/python3"
|
|
||||||
])
|
|
||||||
|
|
||||||
on_build(build)
|
|
||||||
|
|
||||||
def pack_meson(composer):
|
|
||||||
composer.makedir("bin")
|
|
||||||
composer.addfile("meson", "bin/meson")
|
|
||||||
|
|
||||||
package("meson")
|
|
||||||
dep("python @same-arch")
|
|
||||||
recommend("ninja")
|
|
||||||
on_pack(pack_meson)
|
|
||||||
Reference in New Issue
Block a user