-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
77 lines (63 loc) · 1.63 KB
/
PKGBUILD
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/bin/bash
# Created from the original package by
# Disable various shellcheck rules that produce false positives in this file.
# Repository rules should be added to the .shellcheckrc file located in the
# repository root directory, see https://github.com/koalaman/shellcheck/wiki
# and https://archiv8.github.io for further information.
# shellcheck disable=SC2034,SC2154
# [ToDo]: Add files: User documentation
# [ToDo]: Add files: Tooling
# [FixMe]: Namcap warnings and errors
# Maintainer: Rodrigo Bezerra <rodrigobezerra21 at gmail dot com>
_relname=srt
pkgname=lib32-srt
pkgver=1.4.4
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=8b32f3734ff6af7cc7b0fef272591cb80a2d1aae # tags/v1.4.4
source=(
"git+https://github.com/Haivision/srt#commit=$_commit"
)
b2sums=(
'SKIP'
)
pkgver() {
cd $_relname
git describe --tags | sed 's/^v//;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
}