blob: 634cb1f2af8ca06f4113a285d28787052f794d5f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Maintainer: Rodrigo Bezerra <rodrigobezerra21 at gmail dot com>
_basename=srt
pkgname=lib32-srt
pkgver=1.4.1
pkgrel=1
pkgdesc="Secure Reliable Transport library (32-bit)"
url="https://www.srtalliance.org/"
arch=(x86_64)
license=(MPL2)
depends=(lib32-gcc-libs lib32-openssl srt)
makedepends=(git cmake ninja)
_commit=9e52606fae3b32818b5b734d45d3358f4a95cf3f # tags/v1.4.1
source=("git+https://github.com/Haivision/srt#commit=$_commit"
no-rpath.diff)
sha256sums=('SKIP'
'ce9a97d661d796da85a7e4faf9c70c27368d00eb505f85c03a31bba8f22e6847')
pkgver() {
cd $_basename
git describe --tags | sed 's/^v//;s/-/+/g'
}
prepare() {
cd $_basename
patch -Np1 -i ../no-rpath.diff
}
build() {
export CC='gcc -m32'
export CXX='g++ -m32'
export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
cmake -Hsrt -Bbuild -GNinja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_BINDIR=bin \
-DCMAKE_INSTALL_LIBDIR=lib32 \
-DCMAKE_INSTALL_INCLUDEDIR=include \
-DENABLE_TESTING=True
cmake --build build
}
check() {
cd build
./utility-test
}
package() {
DESTDIR="$pkgdir" cmake --build build --target install
cd "$pkgdir"/usr
rm -r bin include
}
|