archrelease: copy trunk to extra-x86_64
[arch-packages.git] / live-media / trunk / PKGBUILD
blob9e398cf1e53f5b186799fceb91721175d6d7c326
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=2021.08.24
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=('ce95a1c79f6d18e959f9dc129b8529b711c60e76754acc285e60946303b923ec')
16 sha512sums=('f776e43a9b0792fd41e43f3c06e48f5d766c405d6af4ed5ddac108723f222c844ec5dbe29701b62dff760fbed777935ffc9149080b45d7a7b4c655a7f1fe6dae')
18 build() {
19   cd live
20   sed -E 's|(-DSOCKLEN_T=socklen_t)|\1 -fPIC -DRTSPCLIENT_SYNCHRONOUS_INTERFACE=1|g' -i config.linux
21   ./genMakefiles linux
22   make
25 package() {
26   cd live
27   for dir in BasicUsageEnvironment groupsock liveMedia UsageEnvironment; do
28     install -Dm 644 ${dir}/*.a -t "${pkgdir}/usr/lib"
29     install -Dm 644 ${dir}/include/*.h* -t "${pkgdir}/usr/include/${dir}"
30   done
31   find testProgs -type f -perm 755 -print0|xargs -0 -I '{}' install -Dm 755 '{}' -t "${pkgdir}/usr/bin"
34 # vim: ts=2 sw=2 et: