Date: Tuesday, February 22, 2022 @ 18:07:42 Author: arojas Revision: 437968
archrelease: copy trunk to extra-x86_64 Added: flac/repos/extra-x86_64/PKGBUILD (from rev 437967, flac/trunk/PKGBUILD) Deleted: flac/repos/extra-x86_64/PKGBUILD ----------+ PKGBUILD | 115 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 58 insertions(+), 57 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-02-22 18:07:34 UTC (rev 437967) +++ PKGBUILD 2022-02-22 18:07:42 UTC (rev 437968) @@ -1,57 +0,0 @@ -# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> -# Contributor: Eric Bélanger <e...@archlinux.org> - -pkgbase=flac -pkgname=('flac' 'flac-doc') -pkgver=1.3.4 -pkgrel=1 -pkgdesc='Free Lossless Audio Codec' -url='https://xiph.org/flac/' -arch=('x86_64') -license=('BSD' 'GPL') -depends=('gcc-libs' 'libogg') -makedepends=('nasm' 'doxygen' 'cmake' 'ninja') -source=(https://downloads.xiph.org/releases/flac/flac-${pkgver}.tar.xz) -sha512sums=('4a626e8a1bd126e234c0e5061e3b46f3a27c2065fdfa228fd8cf00d3c7fa2c05fafb5cec36acce7bfce4914bfd7db0b2a27ee15decf2d8c4caad630f62d44ec9') - -prepare() { - cd flac-${pkgver} -} - -build() { - cmake -S flac-${pkgver} -B build -G Ninja \ - -DCMAKE_BUILD_TYPE=None \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_INSTALL_MANDIR=/usr/share/man/man1 \ - -DBUILD_SHARED_LIBS=ON \ - -DWITH_STACK_PROTECTOR=OFF - cmake --build build -} - -check() { - FLAC__TEST_LEVEL=0 cmake --build build --target test -} - -package_flac() { - provides=('libFLAC.so' 'libFLAC++.so') - - DESTDIR="${pkgdir}" cmake --install build - - install -Dm 644 flac-${pkgver}/src/*/*.m4 -t "${pkgdir}/usr/share/aclocal" - - mkdir -p doc/usr/share - mv {"${pkgdir}",doc}/usr/share/doc - - install -Dm 644 flac-${pkgver}/COPYING.Xiph -t "${pkgdir}/usr/share/licenses/${pkgname}" -} - -package_flac-doc() { - pkgdesc+=' documentation' - depends=() - - mv doc/* "$pkgdir" - - install -Dm 644 flac-${pkgver}/COPYING.Xiph -t "${pkgdir}/usr/share/licenses/${pkgname}" -} - -# vim:set sw=2 et: Copied: flac/repos/extra-x86_64/PKGBUILD (from rev 437967, flac/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-02-22 18:07:42 UTC (rev 437968) @@ -0,0 +1,58 @@ +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> +# Contributor: Eric Bélanger <e...@archlinux.org> + +pkgbase=flac +pkgname=('flac' 'flac-doc') +pkgver=1.3.4 +pkgrel=2 +pkgdesc='Free Lossless Audio Codec' +url='https://xiph.org/flac/' +arch=('x86_64') +license=('BSD' 'GPL') +depends=('gcc-libs' 'libogg') +makedepends=('nasm' 'doxygen' 'cmake' 'ninja') +source=(https://downloads.xiph.org/releases/flac/flac-${pkgver}.tar.xz) +sha512sums=('4a626e8a1bd126e234c0e5061e3b46f3a27c2065fdfa228fd8cf00d3c7fa2c05fafb5cec36acce7bfce4914bfd7db0b2a27ee15decf2d8c4caad630f62d44ec9') + +prepare() { + cd flac-${pkgver} +} + +build() { + cmake -S flac-${pkgver} -B build -G Ninja \ + -DCMAKE_BUILD_TYPE=None \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_MANDIR=/usr/share/man/man1 \ + -DBUILD_SHARED_LIBS=ON \ + -DWITH_STACK_PROTECTOR=OFF \ + -DNDEBUG=ON + cmake --build build +} + +check() { + FLAC__TEST_LEVEL=0 cmake --build build --target test +} + +package_flac() { + provides=('libFLAC.so' 'libFLAC++.so') + + DESTDIR="${pkgdir}" cmake --install build + + install -Dm 644 flac-${pkgver}/src/*/*.m4 -t "${pkgdir}/usr/share/aclocal" + + mkdir -p doc/usr/share + mv {"${pkgdir}",doc}/usr/share/doc + + install -Dm 644 flac-${pkgver}/COPYING.Xiph -t "${pkgdir}/usr/share/licenses/${pkgname}" +} + +package_flac-doc() { + pkgdesc+=' documentation' + depends=() + + mv doc/* "$pkgdir" + + install -Dm 644 flac-${pkgver}/COPYING.Xiph -t "${pkgdir}/usr/share/licenses/${pkgname}" +} + +# vim:set sw=2 et: