blob: 02db1d91e65e27f047ae48ef4def2c840d45b276 (
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
|
# Maintainer: Rodrigo Bezerra <rodrigobezerra21 at gmail dot com>
_basename=srt
pkgname=lib32-srt
pkgver=1.5.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=(cmake git ninja)
_commit=0bc3b03202b3159fc9b085b3ae6d66ec071c25d6 # tags/v1.5.1
source=("git+https://github.com/Haivision/srt#commit=$_commit")
b2sums=('SKIP')
pkgver() {
cd $_basename
git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g'
}
build() {
export CC='gcc -m32'
export CXX='g++ -m32'
export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
cmake -S srt -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_BINDIR=bin \
-DCMAKE_INSTALL_LIBDIR=lib32 \
-DCMAKE_INSTALL_INCLUDEDIR=include \
-DCMAKE_BUILD_TYPE=None \
-DENABLE_STATIC=ON \
-DENABLE_TESTING=ON
cmake --build build
}
check() {
cd build
./uriparser-test
./utility-test
}
package() {
DESTDIR="$pkgdir" cmake --install build
cd "$pkgdir"/usr
rm -r bin include
}
|