blob: a826217034010c2d3251d2c3c4e0b1ace6c2cbbf (
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
59
60
61
62
|
# Maintainer: Nick G. <wirlaburla@worlio.com>
_pkgbase=psi-plus
_plugin=mediaplugin
pkgname=${_pkgbase}-${_plugin}-git
pkgver=1.0.5.175.g478567e
pkgrel=1
pkgdesc="Psi+ Audio/video RTP"
arch=('x86_64')
url="https://github.com/psi-im/psimedia"
license=('LGPL2')
depends=('psi-plus-git')
makedepends=('git' 'cmake')
conflicts=('psi-plus-mediaplugin')
provides=("psi-plus-mediaplugin=$pkgver")
source=('git+https://github.com/psi-im/psimedia'
'git+https://github.com/psi-im/psi.git'
"${_pkgbase}::git+https://github.com/psi-plus/main.git"
'git+https://github.com/psi-im/libpsi.git')
md5sums=('SKIP'
'SKIP'
'SKIP'
'SKIP')
pkgver() {
cd psimedia
git describe --long --tags | sed 's/^v//;s/-/./g'
}
prepare() {
cd psi
# makepkg doesn't support --recursive
# so setup git modules manually
git submodule init
git config submodule.src/libpsi.url "$srcdir/libpsi"
# git submodule update
# From git 2.38.1-1, "git submodule" in PKGBUILD does not work
# unless we change the git config "protocol.file.allow" [1,2].
# [1] https://bugs.archlinux.org/task/76255
# [2] https://bbs.archlinux.org/viewtopic.php?pid=2063104#p2063104
git -c protocol.file.allow=always submodule update --init --recursive
}
build() {
cd psimedia
cmake \
-B build \
-S psimedia \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DUSE_PSI=OFF \
-DBUILD_DEMO=OFF \
.
cmake --build build
}
package() {
cd psimedia
DESTDIR="$pkgdir" cmake --install build
}
|