From 88fea5a7ae67d5a1cfa9f6a32e5f820a31861d5f Mon Sep 17 00:00:00 2001 From: davidovski Date: Tue, 22 Feb 2022 17:16:33 +0000 Subject: added audio and media libraries --- repo/media/flac.xibuild | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 repo/media/flac.xibuild (limited to 'repo/media/flac.xibuild') 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 +} -- cgit v1.2.1