-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathPKGBUILD
More file actions
106 lines (102 loc) · 2.17 KB
/
Copy pathPKGBUILD
File metadata and controls
106 lines (102 loc) · 2.17 KB
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# SPDX-License-Identifier: AGPL-3.0
#
# Maintainer: Truocolo <truocolo@aol.com>
# Maintainer: Pellegrino Prevete (tallero) <pellegrinoprevete@gmail.com>
_offline="false"
_git="false"
pkgname=distributed-recorder
pkgver=0.0.0.0.0.0.0.0.0.0.0.0.0.1
_commit="eef5daf346c771cb5cf253e72d4603111ceadd0e"
pkgrel=1
_pkgdesc=(
"Distributed recorder."
)
pkgdesc="${_pkgdesc[*]}"
arch=(
any
)
_http="https://github.com"
_ns="themartiancompany"
url="${_http}/${_ns}/${pkgname}"
license=(
AGPL3
)
depends=(
"remote-recorder"
"remote-encoder"
)
_os="$( \
uname \
-o)"
[[ "${_os}" != "GNU/Linux" ]] && \
[[ "${_os}" == "Android" ]] && \
depends+=(
)
optdepends=(
'media-tools: media manipulation tools library'
'record-tools: recording tools suite'
)
[[ "${_os}" == 'Android' ]] && \
optdepends+=(
'android-recorder: for recording from this device screen.'
'android-camera-recorder: for recording from this device camera'
'android-remote-camera-recorder: for recording from the camera of another device'
)
makedepends=(
make
)
checkdepends=(
"shellcheck"
)
source=()
sha256sums=()
_url="${url}"
_tag="${_commit}"
_tag_name="commit"
_tarname="${pkgname}-${_tag}"
[[ "${_offline}" == "true" ]] && \
url="file://${HOME}/${pkgname}"
[[ "${_git}" == true ]] && \
makedepends+=(
"git"
) && \
source+=(
"${_tarname}::git+${_url}#${_tag_name}=${_tag}?signed"
) && \
sha256sums+=(
SKIP
)
[[ "${_git}" == false ]] && \
if [[ "${_tag_name}" == 'pkgver' ]]; then
_tar="${_tarname}.tar.gz::${_url}/archive/refs/tags/${_tag}.tar.gz"
_sum="d4f4179c6e4ce1702c5fe6af132669e8ec4d0378428f69518f2926b969663a91"
elif [[ "${_tag_name}" == "commit" ]]; then
_tar="${_tarname}.zip::${_url}/archive/${_commit}.zip"
_sum="0182a5f8cc48e86c82a436b88e1b1e9afed0e94252297f696522206d7a1449ca"
fi && \
source+=(
"${_tar}"
) && \
sha256sums+=(
"${_sum}"
)
validpgpkeys=(
# Truocolo <truocolo@aol.com>
'97E989E6CF1D2C7F7A41FF9F95684DBE23D6A3E9'
)
check() {
cd \
"${_tarname}"
make \
-k \
check
}
package() {
cd \
"${_tarname}"
make \
PREFIX="/usr" \
DESTDIR="${pkgdir}" \
install
}
# vim: ft=sh syn=sh et