Commit d0bebc4e authored by Jeff Huang's avatar Jeff Huang 🤔

[skip-ci] flac: update to 1.3.3

parent c63f63d3
Pipeline #4010 skipped
pkgname=flac
pkgver=1.3.2
# Contributions from Arch:
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: Eric Bélanger <eric@archlinux.org>
pkgbase=flac
pkgname=('flac' 'flac-doc')
pkgver=1.3.3
pkgrel=1
pkgdesc="Free Lossless Audio Codec"
pkgdesc='Free Lossless Audio Codec'
url='https://xiph.org/flac/'
arch=('x86_64')
url="http://flac.sourceforge.net/"
license=('custom:Xiph' 'LGPL' 'GPL' 'FDL')
depends=('libogg')
makedepends=('nasm')
options=('!makeflags')
source=("http://downloads.xiph.org/releases/$pkgname/$pkgname-$pkgver.tar.xz")
md5sums=('454f1bfa3f93cc708098d7890d0499bd')
license=('BSD' 'GPL')
depends=('gcc-libs' 'libogg')
makedepends=('nasm' 'doxygen')
source=(https://downloads.xiph.org/releases/flac/${pkgbase}-${pkgver}.tar.xz)
sha256sums=('213e82bd716c9de6db2f98bcadbc4c24c7e2efe8c75939a1a84e28539c4e1748')
build() {
cd "${srcdir}/${pkgbase}-${pkgver}"
./configure --prefix=/usr --mandir=/usr/share/man --enable-shared \
--disable-sse --disable-rpath --with-pic
cd ${pkgbase}-${pkgver}
./configure \
--prefix=/usr \
--disable-sse
make
}
check() {
cd "${srcdir}/${pkgbase}-${pkgver}"
cd ${pkgbase}-${pkgver}
make check
}
package() {
pkgdesc="Free Lossless Audio Codec"
optdepends=('xmms: for using the xmms plugin')
options=('!libtool' '!docs')
package_flac() {
options=('!docs')
provides=('libFLAC.so' 'libFLAC++.so')
cd "${srcdir}/${pkgbase}-${pkgver}"
cd ${pkgbase}-${pkgver}
make DESTDIR="${pkgdir}" install
install -D -m644 COPYING.Xiph "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm 644 COPYING.Xiph -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
package_flac-doc() {
pkgdesc+=' documentation'
depends=('flac')
cd ${pkgbase}-${pkgver}
make DESTDIR="${pkgdir}" -C doc install
sed -i "s|${srcdir}/${pkgbase}-${pkgver}|/usr|" "${pkgdir}/usr/share/doc/${pkgbase}/FLAC.tag"
install -Dm 644 COPYING.Xiph -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment