summaryrefslogtreecommitdiff
path: root/repo/media/flac.xibuild
blob: dd1ab984e23643b71574327f2a62c3b50760dda4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

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
}