opt/flac/Pkgfile

34 lines
671 B
Plaintext

# Description: Free Lossless Audio Codec.
# URL: https://xiph.org/flac/
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: libogg
name=flac
version=1.4.0
release=1
source=(https://downloads.xiph.org/releases/flac/$name-$version.tar.xz)
unpack_source() {
mkdir $SRC/tarballs
for file in ${source[@]}; do
case ${file##*/} in
$name-$version.tar.xz)
echo "Unpacking $(get_filename $file)"
bsdtar -p -o -C $SRC -xf $(get_filename $file) ;;
*)
cp $(get_filename $file) $SRC ;;
esac
done
}
build() {
cd $name-$version
./configure --prefix=/usr
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share/doc
}