mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
added extra/flac
This commit is contained in:
parent
6044915ced
commit
ac9db547a2
2 changed files with 94 additions and 0 deletions
77
extra/flac/PKGBUILD
Normal file
77
extra/flac/PKGBUILD
Normal file
|
@ -0,0 +1,77 @@
|
|||
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
|
||||
# Contributor: Eric Bélanger <eric@archlinux.org>
|
||||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - remove makedepends on pandoc, set -DINSTALL_MANPAGES=OFF
|
||||
|
||||
pkgbase=flac
|
||||
pkgname=('flac' 'flac-doc')
|
||||
pkgver=1.4.1
|
||||
pkgrel=1
|
||||
pkgdesc='Free Lossless Audio Codec'
|
||||
url='https://xiph.org/flac/'
|
||||
arch=('x86_64')
|
||||
license=('BSD' 'GPL')
|
||||
depends=('gcc-libs' 'libogg')
|
||||
makedepends=('nasm' 'cmake' 'ninja' 'doxygen' 'git')
|
||||
options=('debug')
|
||||
_commit=b6fbd6b3d97e2da4481bdbd25176f263fd6a5e75 # tags/1.4.1
|
||||
source=("git+https://github.com/xiph/flac?signed#commit=$_commit")
|
||||
b2sums=('SKIP')
|
||||
validpgpkeys=('5DE3E0509C47EA3CF04A42D34AEE18F83AFDEB23') # https://github.com/web-flow.gpg
|
||||
|
||||
pkgver() {
|
||||
cd flac
|
||||
git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
|
||||
}
|
||||
|
||||
prepare() {
|
||||
cd flac
|
||||
|
||||
# Shorten tests
|
||||
sed -i 's/FLAC__TEST_LEVEL=1/FLAC__TEST_LEVEL=0/' test/CMakeLists.txt
|
||||
}
|
||||
|
||||
build() {
|
||||
cmake -S flac -B build -G Ninja \
|
||||
-DCMAKE_BUILD_TYPE=None \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-DINSTALL_MANPAGES=OFF \
|
||||
-DWITH_STACK_PROTECTOR=OFF \
|
||||
-DNDEBUG=ON
|
||||
cmake --build build
|
||||
|
||||
# Build docs and place them where install expects them
|
||||
cmake --build build --target FLAC-doxygen
|
||||
mv build/doc/doxytmp/html flac/doc/api
|
||||
}
|
||||
|
||||
check() {
|
||||
cd build
|
||||
ctest --output-on-failure --stop-on-failure -j1
|
||||
}
|
||||
|
||||
package_flac() {
|
||||
provides=('libFLAC.so' 'libFLAC++.so')
|
||||
|
||||
DESTDIR="${pkgdir}" cmake --install build
|
||||
|
||||
install -Dm 644 flac/src/*/*.m4 -t "${pkgdir}/usr/share/aclocal"
|
||||
|
||||
mkdir -p doc/usr/share
|
||||
mv {"${pkgdir}",doc}/usr/share/doc
|
||||
|
||||
install -Dm 644 flac/COPYING.Xiph -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
||||
}
|
||||
|
||||
package_flac-doc() {
|
||||
pkgdesc+=' documentation'
|
||||
depends=()
|
||||
|
||||
mv doc/* "$pkgdir"
|
||||
|
||||
install -Dm 644 flac/COPYING.Xiph -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
||||
}
|
||||
|
||||
# vim:set sw=2 sts=-1 et:
|
|
@ -0,0 +1,17 @@
|
|||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
|
||||
mQENBFmUaEEBCACzXTDt6ZnyaVtueZASBzgnAmK13q9Urgch+sKYeIhdymjuMQta
|
||||
x15OklctmrZtqre5kwPUosG3/B2/ikuPYElcHgGPL4uL5Em6S5C/oozfkYzhwRrT
|
||||
SQzvYjsE4I34To4UdE9KA97wrQjGoz2Bx72WDLyWwctD3DKQtYeHXswXXtXwKfjQ
|
||||
7Fy4+Bf5IPh76dA8NJ6UtjjLIDlKqdxLW4atHe6xWFaJ+XdLUtsAroZcXBeWDCPa
|
||||
buXCDscJcLJRKZVc62gOZXXtPfoHqvUPp3nuLA4YjH9bphbrMWMf810Wxz9JTd3v
|
||||
yWgGqNY0zbBqeZoGv+TuExlRHT8ASGFS9SVDABEBAAG0NUdpdEh1YiAod2ViLWZs
|
||||
b3cgY29tbWl0IHNpZ25pbmcpIDxub3JlcGx5QGdpdGh1Yi5jb20+iQEiBBMBCAAW
|
||||
BQJZlGhBCRBK7hj4Ov3rIwIbAwIZAQAAmQEH/iATWFmi2oxlBh3wAsySNCNV4IPf
|
||||
DDMeh6j80WT7cgoX7V7xqJOxrfrqPEthQ3hgHIm7b5MPQlUr2q+UPL22t/I+ESF6
|
||||
9b0QWLFSMJbMSk+BXkvSjH9q8jAO0986/pShPV5DU2sMxnx4LfLfHNhTzjXKokws
|
||||
+8ptJ8uhMNIDXfXuzkZHIxoXk3rNcjDN5c5X+sK8UBRH092BIJWCOfaQt7v7wig5
|
||||
4Ra28pM9GbHKXVNxmdLpCFyzvyMuCmINYYADsC848QQFFwnd4EQnupo6QvhEVx1O
|
||||
j7wDwvuH5dCrLuLwtwXaQh0onG4583p0LGms2Mf5F+Ick6o/4peOlBoZz48=
|
||||
=Bvzs
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
Loading…
Reference in a new issue