upgpkg: sbcl 2.2.4-1
[arch-packages.git] / live-media / repos / extra-x86_64 / PKGBUILD
blobd887f42fac5212b1c745ede110d18844c928d68c
1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Contributor: Giovanni Scafora <giovanni@archlinux.org>
3 # Contributor: Gilles CHAUVIN <gcnweb@gmail.com>
5 pkgname=live-media
6 pkgver=2022.02.07
7 pkgrel=1
8 pkgdesc='Set of C++ libraries for multimedia streaming'
9 url='http://live555.com/liveMedia'
10 arch=('x86_64')
11 license=('LGPL')
12 depends=('gcc-libs' 'openssl')
13 options=('staticlibs')
14 source=(https://download.videolan.org/contrib/live555/live.${pkgver}.tar.gz)
15 sha256sums=('6f0c1f8a71ceb506bcbf969b02b4b0c3697b4e15daeb6dcba9872c8745ce92c6')
16 sha512sums=('5ca9c675c9b719566111053c4e60d2e85e4f7f8081ec947f0e152ee583b5cbe0625e57e8a345e90829452efd6c42c7986609403b4e6e0f0c0124b73d94a35af4')
18 build() {
19   cd live
20   export CFLAGS+=" -ffat-lto-objects"
21   export CXXFLAGS+=" -ffat-lto-objects"
22   sed -E 's|(-DSOCKLEN_T=socklen_t)|\1 -fPIC -DRTSPCLIENT_SYNCHRONOUS_INTERFACE=1|g' -i config.linux
23   ./genMakefiles linux
24   make
27 package() {
28   cd live
29   for dir in BasicUsageEnvironment groupsock liveMedia UsageEnvironment; do
30     install -Dm 644 ${dir}/*.a -t "${pkgdir}/usr/lib"
31     install -Dm 644 ${dir}/include/*.h* -t "${pkgdir}/usr/include/${dir}"
32   done
33   find testProgs -type f -perm 755 -print0|xargs -0 -I '{}' install -Dm 755 '{}' -t "${pkgdir}/usr/bin"
36 # vim: ts=2 sw=2 et: