diff options
-rw-r--r-- | repo/media/alsa-firmware.xibuild | 18 | ||||
-rw-r--r-- | repo/media/alsa-lib.xibuild | 18 | ||||
-rw-r--r-- | repo/media/alsa-oss.xibuild | 18 | ||||
-rw-r--r-- | repo/media/alsa-plugins.xibuild | 18 | ||||
-rw-r--r-- | repo/media/alsa-tools.xibuild | 35 | ||||
-rw-r--r-- | repo/media/alsa-utils.xibuild | 21 | ||||
-rw-r--r-- | repo/media/audiofile.xibuild | 29 | ||||
-rw-r--r-- | repo/media/faac.xibuild | 19 | ||||
-rw-r--r-- | repo/media/faad2.xibuild | 19 | ||||
-rw-r--r-- | repo/media/fdk-aac.xibuild | 18 | ||||
-rw-r--r-- | repo/media/flac.xibuild | 28 | ||||
-rw-r--r-- | repo/media/libogg.xibuild | 21 | ||||
-rw-r--r-- | repo/media/libsamplerate.xibuild | 20 | ||||
-rw-r--r-- | repo/media/libsndfile.xibuild | 20 | ||||
-rw-r--r-- | repo/media/libtheora.xibuild | 22 | ||||
-rw-r--r-- | repo/media/libvorbis.xibuild | 19 | ||||
-rw-r--r-- | repo/media/libvpx.xibuild | 27 | ||||
-rw-r--r-- | repo/media/opus.xibuild | 20 | ||||
-rw-r--r-- | repo/media/pipewire.xibuild | 21 | ||||
-rw-r--r-- | repo/media/pulseaudio.xibuild | 26 |
20 files changed, 437 insertions, 0 deletions
diff --git a/repo/media/alsa-firmware.xibuild b/repo/media/alsa-firmware.xibuild new file mode 100644 index 0000000..547a4be --- /dev/null +++ b/repo/media/alsa-firmware.xibuild @@ -0,0 +1,18 @@ +#!/bin/bash + +MAKEDEPS=(make xmlto) +DEPS=(alsa-tools) + +DESC="Firmware binaries for loader programs in alsa-tools and hotplug firmware loader" + +PKG_VER=1.2.4 +SOURCE=https://www.alsa-project.org/files/pub/firmware/alsa-firmware-$PKG_VER.tar.bz2 + +build () { + ./configure --prefix=/usr && + make +} + +package () { + make DESTDIR=$PKG_DEST install +} diff --git a/repo/media/alsa-lib.xibuild b/repo/media/alsa-lib.xibuild new file mode 100644 index 0000000..5e4230f --- /dev/null +++ b/repo/media/alsa-lib.xibuild @@ -0,0 +1,18 @@ +#!/bin/bash + +MAKEDEPS=(make) +DEPS=(glibc python alsa-topology-conf alsa-ucm-conf) + +DESC="An alternative implementation of Linux sound support" + +PKG_VER=1.2.6.1 +SOURCE=https://www.alsa-project.org/files/pub/lib/alsa-lib-$PKG_VER.tar.bz2 + +build () { + ./configure + make +} + +package () { + make DESTDIR=$PKG_DEST install +} diff --git a/repo/media/alsa-oss.xibuild b/repo/media/alsa-oss.xibuild new file mode 100644 index 0000000..7ef7223 --- /dev/null +++ b/repo/media/alsa-oss.xibuild @@ -0,0 +1,18 @@ +#!/bin/bash + +MAKEDEPS=(make) +DEPS=(alsa-lib) + +DESC="OSS compatibility library" + +PKG_VER=1.1.8 +SOURCE=https://www.alsa-project.org/files/pub/oss-lib/alsa-oss-$PKG_VER.tar.bz2 + +build () { + ./configure --disable-static && + make +} + +package () { + make DESTDIR=$PKG_DEST install +} diff --git a/repo/media/alsa-plugins.xibuild b/repo/media/alsa-plugins.xibuild new file mode 100644 index 0000000..81e2fc8 --- /dev/null +++ b/repo/media/alsa-plugins.xibuild @@ -0,0 +1,18 @@ +#!/bin/bash + +MAKEDEPS=(make) +DEPS=(glibc alsa-lib) + +DESC="Additional ALSA plugins" + +PKG_VER=1.2.6 +SOURCE=https://www.alsa-project.org/files/pub/plugins/alsa-plugins-$PKG_VER.tar.bz2 + +build () { + ./configure --sysconfdir=/etc && + make +} + +package () { + make DESTDIR=$PKG_DEST install +} diff --git a/repo/media/alsa-tools.xibuild b/repo/media/alsa-tools.xibuild new file mode 100644 index 0000000..2b37bbd --- /dev/null +++ b/repo/media/alsa-tools.xibuild @@ -0,0 +1,35 @@ +#!/bin/bash + +MAKEDEPS=(make) +DEPS=(alsa-lib) + +DESC="Advanced tools for certain sound cards" + +PKG_VER=1.2.5 +SOURCE=https://www.alsa-project.org/files/pub/tools/alsa-tools-$PKG_VER.tar.bz2 + +prepare () { + rm -rf qlo10k1 Makefile gitcompile +} + +build () { + for tool in *; do + case $tool in + seq ) + tool_dir=seq/sbiload + ;; + * ) + tool_dir=$tool + ;; + esac + + pushd $tool_dir + ./configure --prefix=/usr + make + make DESTDIR=$PKG_DEST install + popd + +done +unset tool tool_dir + +} diff --git a/repo/media/alsa-utils.xibuild b/repo/media/alsa-utils.xibuild new file mode 100644 index 0000000..6f6a7e7 --- /dev/null +++ b/repo/media/alsa-utils.xibuild @@ -0,0 +1,21 @@ +#!/bin/bash + +MAKEDEPS=(make xmlto) +DEPS=(alsa-lib fftw libsamplerate) + +DESC="Advanced Linux Sound Architecture - Utilities" + +PKG_VER=1.2.6 +SOURCE=https://www.alsa-project.org/files/pub/utils/alsa-utils-$PKG_VER.tar.bz2 + +build () { + ./configure --disable-alsaconf \ + --disable-bat \ + --disable-xmlto \ + --with-curses=ncursesw && + make +} + +package () { + make DESTDIR=$PKG_DEST install +} diff --git a/repo/media/audiofile.xibuild b/repo/media/audiofile.xibuild new file mode 100644 index 0000000..be18656 --- /dev/null +++ b/repo/media/audiofile.xibuild @@ -0,0 +1,29 @@ +#!/bin/bash + +MAKEDEPS=(make asciidoc) +DEPS=(alsa-lib flac) + +DESC="Libraries to support basic sound file formats" + +PKG_VER=0.3.6 +SOURCE=https://download.gnome.org/sources/audiofile/${PKG_VER%.*}/audiofile-$PKG_VER.tar.xz + +ADDITIONAL=( + https://www.linuxfromscratch.org/patches/blfs/svn/audiofile-$PKG_VER-consolidated_patches-1.patch + ) + +prepare () { + patch -Np1 -i audiofile-$PKG_VER-consolidated_patches-1.patch && +} + +build () { + autoreconf -fiv && + + ./configure --prefix=/usr --disable-static && + + make +} + +package () { + make DESTDIR=$PKG_DEST install +} diff --git a/repo/media/faac.xibuild b/repo/media/faac.xibuild new file mode 100644 index 0000000..00af1a6 --- /dev/null +++ b/repo/media/faac.xibuild @@ -0,0 +1,19 @@ +#!/bin/bash + +MAKEDEPS=(make xmlto) +DEPS=(glibc) + +DESC="Freeware Advanced Audio Coder" + +PKG_VER=1_30 +SOURCE=https://github.com/knik0/faac/archive/$PKG_VER/faac-$PKG_VER.tar.gz + +build () { + ./bootstrap && + ./configure --prefix=/usr --disable-static && + make +} + +package () { + make DESTDIR=$PKG_DEST install +} diff --git a/repo/media/faad2.xibuild b/repo/media/faad2.xibuild new file mode 100644 index 0000000..b0105dc --- /dev/null +++ b/repo/media/faad2.xibuild @@ -0,0 +1,19 @@ +#!/bin/bash + +MAKEDEPS=(make xmlto) +DEPS=(alsa-lib fftw libsamplerate) + +DESC="ISO AAC audio decoder" + +PKG_VER=2_10_0 +SOURCE=https://github.com/knik0/faad2/archive/$PKG_VER/faad2-$PKG_VER.tar.gz + +build () { + ./bootstrap && + ./configure --prefix=/usr --disable-static && + make +} + +package () { + make DESTDIR=$PKG_DEST install +} diff --git a/repo/media/fdk-aac.xibuild b/repo/media/fdk-aac.xibuild new file mode 100644 index 0000000..c915fa2 --- /dev/null +++ b/repo/media/fdk-aac.xibuild @@ -0,0 +1,18 @@ +#!/bin/bash + +MAKEDEPS=(make xmlto) +DEPS=(alsa-lib) + +DESC="Fraunhofer FDK AAC library" + +PKG_VER=2.0.2 +SOURCE=https://downloads.sourceforge.net/opencore-amr/fdk-aac-$PKG_VER.tar.gz + +build () { + ./configure --prefix=/usr --disable-static && + make +} + +package () { + make DESTDIR=$PKG_DEST install +} diff --git a/repo/media/flac.xibuild b/repo/media/flac.xibuild new file mode 100644 index 0000000..82ad486 --- /dev/null +++ b/repo/media/flac.xibuild @@ -0,0 +1,28 @@ +#!/bin/bash + +MAKEDEPS=(make xmlto) +DEPS=(libogg nasm) + +DESC="Free Lossless Audio Codec" + +PKG_VER=1.3.3 +SOURCE=https://downloads.xiph.org/releases/flac/flac-$PKG_VER.tar.xz + +ADDITIONAL=( + https://www.linuxfromscratch.org/patches/blfs/svn/flac-$PKG_VER-security_fixes-1.patch + ) + +prepare () { + patch -Np1 -i flac-$PKG_VER-security_fixes-1.patch +} + +build () { + ./configure --prefix=/usr \ + --disable-thorough-tests \ + --docdir=/usr/share/doc/flac-$PKG_VER && + make +} + +package () { + make DESTDIR=$PKG_DEST install +} diff --git a/repo/media/libogg.xibuild b/repo/media/libogg.xibuild new file mode 100644 index 0000000..0f251cd --- /dev/null +++ b/repo/media/libogg.xibuild @@ -0,0 +1,21 @@ +#!/bin/bash + +MAKEDEPS=(make) +DEPS=() + +DESC="Ogg bitstream and framing library" + +PKG_VER=1.3.5 +SOURCE=https://downloads.xiph.org/releases/ogg/libogg-$PKG_VER.tar.xz + +build () { + ./configure --prefix=/usr \ + --disable-static \ + --docdir=/usr/share/doc/libogg-$PKG_VER && + make + +} + +package () { + make DESTDIR=$PKG_DEST install +} diff --git a/repo/media/libsamplerate.xibuild b/repo/media/libsamplerate.xibuild new file mode 100644 index 0000000..c985452 --- /dev/null +++ b/repo/media/libsamplerate.xibuild @@ -0,0 +1,20 @@ +#!/bin/bash + +MAKEDEPS=(make xmlto) +DEPS=(libogg nasm) + +DESC="An audio sample rate conversion library" + +PKG_VER=0.2.2 +SOURCE=https://github.com/libsndfile/libsamplerate/releases/download/$PKG_VER/libsamplerate-$PKG_VER.tar.xz + +build () { + ./configure --prefix=/usr \ + --disable-static \ + --docdir=/usr/share/doc/libsamplerate-$PKG_VER && + make +} + +package () { + make DESTDIR=$PKG_DEST install +} diff --git a/repo/media/libsndfile.xibuild b/repo/media/libsndfile.xibuild new file mode 100644 index 0000000..7e8f70e --- /dev/null +++ b/repo/media/libsndfile.xibuild @@ -0,0 +1,20 @@ +#!/bin/bash + +MAKEDEPS=(make ) +DEPS=(alsa-lib flac opus libvorbis) + +DESC="A C library for reading and writing files containing sampled audio data" + +PKG_VER=1.0.31 +SOURCE=https://github.com/libsndfile/libsndfile/releases/download/$PKG_VER/libsndfile-$PKG_VER.tar.bz2 + +build () { + ./configure --prefix=/usr \ + --disable-static \ + --docdir=/usr/share/doc/libsndfile-$PKG_VER && + make +} + +package () { + make DESTDIR=$PKG_DEST install +} diff --git a/repo/media/libtheora.xibuild b/repo/media/libtheora.xibuild new file mode 100644 index 0000000..6e658f5 --- /dev/null +++ b/repo/media/libtheora.xibuild @@ -0,0 +1,22 @@ +#!/bin/bash + +MAKEDEPS=(make) +DEPS=(libogg libvorbis) + +DESC="An open video codec developed by the Xiph.org" + +PKG_VER=1.1.1 +SOURCE=https://downloads.xiph.org/releases/theora/libtheora-$PKG_VER.tar.xz + +prepare () { + sed -i 's/png_\(sizeof\)/\1/g' examples/png2theora.c && +} + +build () { + ./configure --prefix=/usr --disable-static && + make +} + +package () { + make DESTDIR=$PKG_DEST install +} diff --git a/repo/media/libvorbis.xibuild b/repo/media/libvorbis.xibuild new file mode 100644 index 0000000..990efc9 --- /dev/null +++ b/repo/media/libvorbis.xibuild @@ -0,0 +1,19 @@ +#!/bin/bash + +MAKEDEPS=(make) +DEPS=(libogg) + +DESC="Reference implementation of the Ogg Vorbis audio format" + +PKG_VER=1.3.7 +SOURCE=https://downloads.xiph.org/releases/vorbis/libvorbis-$PKG_VER.tar.xz + +build () { + ./configure --prefix=/usr --disable-static && + make +} + +package () { + make DESTDIR=$PKG_DEST install + install -v -m644 doc/Vorbis* $PKG_DEST/usr/share/doc/libvorbis-$PKG_VER +} diff --git a/repo/media/libvpx.xibuild b/repo/media/libvpx.xibuild new file mode 100644 index 0000000..c04fc25 --- /dev/null +++ b/repo/media/libvpx.xibuild @@ -0,0 +1,27 @@ +#!/bin/bash + +MAKEDEPS=(make) +DEPS=(nasm which) + +DESC="VP8 and VP9 codec" + +PKG_VER=1.11.0 +SOURCE=https://github.com/webmproject/libvpx/archive/v$PKG_VER/libvpx-$PKG_VER.tar.gz + +prepare () { + sed -i 's/cp -p/cp/' build/make/Makefile && +} + +build () { + mkdir libvpx-build && + cd libvpx-build && + + ../configure --prefix=/usr \ + --enable-shared \ + --disable-static && + make +} + +package () { + make DESTDIR=$PKG_DEST install +} diff --git a/repo/media/opus.xibuild b/repo/media/opus.xibuild new file mode 100644 index 0000000..4f4ece8 --- /dev/null +++ b/repo/media/opus.xibuild @@ -0,0 +1,20 @@ +#!/bin/bash + +MAKEDEPS=(make) +DEPS=(glibc) + +DESC="Totally open, royalty-free, highly versatile audio codec" + +PKG_VER=1.3.1 +SOURCE=https://archive.mozilla.org/pub/opus/opus-$PKG_VER.tar.gz + +build () { + ./configure --prefix=/usr \ + --disable-static \ + --docdir=/usr/share/doc/opus-$PKG_VER && + make +} + +package () { + make DESTDIR=$PKG_DEST install +} diff --git a/repo/media/pipewire.xibuild b/repo/media/pipewire.xibuild new file mode 100644 index 0000000..56f2eb1 --- /dev/null +++ b/repo/media/pipewire.xibuild @@ -0,0 +1,21 @@ +#!/bin/bash + +MAKEDEPS=(make) +DEPS=(bluez ffmpeg gstreamer gst-plugins-base libva pulseaudio sbc sdl2 v4l-utils) + +DESC="Low-latency audio/video router and processor" + +PKG_VER=0.3.47 +SOURCE=https://github.com/PipeWire/pipewire/archive/$PLG_VER/pipewire-$PKG_VER.tar.gz + +build () { + mkdir build && + cd build && + + meson --prefix=/usr --buildtype=release -Dsession-managers= .. && + ninja +} + +package () { + DESTDIR=$PKG_DEST ninja install +} diff --git a/repo/media/pulseaudio.xibuild b/repo/media/pulseaudio.xibuild new file mode 100644 index 0000000..dfb7831 --- /dev/null +++ b/repo/media/pulseaudio.xibuild @@ -0,0 +1,26 @@ +#!/bin/bash + +MAKEDEPS=(make) +DEPS=(libsndfile alsa-lib dbus elogind glib libcap speex libxtst gdbm) + +DESC="A featureful, general-purpose sound server" + +PKG_VER=15.0 +SOURCE=https://www.freedesktop.org/software/pulseaudio/releases/pulseaudio-$PKG_VER.tar.xz + +build () { + mkdir build && + cd build && + + meson --prefix=/usr \ + --buildtype=release \ + -Ddatabase=gdbm \ + -Ddoxygen=false \ + -Dbluez5=disabled && + ninja +} + +package () { + DESTDIR=$PKG_DEST ninja install + rm -fv $PKG_DEST/etc/dbus-1/system.d/pulseaudio-system.conf +} |