blob: 95838617de90244fbd733092b4b510acb84efb0f (
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
# Maintainer: Jason Gauci <contact+jgmath2000@gmail.com>
# Contributor: Joel Goguen <contact+aur@jgoguen.ca>
_ghname='EternalTerminal'
_tarname='et'
pkgbase='eternalterminal'
pkgname=('eternalterminal-client' 'eternalterminal-server' 'eternalterminal')
pkgver='6.2.9'
pkgrel=1
arch=('x86_64')
depends=(
'libutempter' 'libunwind' 'openssl' 'libsodium' 'protobuf' 'curl'
)
makedepends=(
'cmake'
)
url='https://mistertea.github.io/EternalTerminal/'
license=('Apache')
source=(
"https://github.com/MisterTea/${_ghname}/archive/${_tarname}-v${pkgver}.tar.gz"
"fix_arch_build_6.2.9.patch"
)
sha256sums=('13bfb2722b011b5f0a28fa619508deca96deec9eee5e42b922add0c166d8185a' 'ecec55efdd30f51812f83d3a40937dabd2ea8305c1ab3a9375b2c35fc0156e0c')
pkgdesc='Remote terminal for the busy and impatient'
prepare() {
cd "${srcdir}/${_ghname}-${_tarname}-v${pkgver}"
msg2 'Preparing directories'
mkdir -p build
msg2 'Applying patches'
patch -p1 <"${srcdir}/fix_arch_build_6.2.9.patch"
}
build() {
cd "${srcdir}/${_ghname}-${_tarname}-v${pkgver}/build"
msg2 'Running cmake'
cmake ../ -DDISABLE_VCPKG=ON -DCMAKE_EXE_LINKER_FLAGS="-Wl,--copy-dt-needed-entries" -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--copy-dt-needed-entries"
msg2 "Building ${_ghname}"
make -j$(( ($(nproc)+1) / 2))
}
package_eternalterminal-client() {
pkgdesc='Re-Connectable Terminal connection. Includes only the client.'
conflicts=('eternalterminal' 'eternalterminal-server')
cd "${srcdir}/${_ghname}-${_tarname}-v${pkgver}/build"
msg2 "Installing ${_ghname} client to package root"
install -D -m 0755 "${srcdir}/${_ghname}-${_tarname}-v${pkgver}/build/et" "${pkgdir}/usr/bin/et"
install -D -m 0755 "${srcdir}/${_ghname}-${_tarname}-v${pkgver}/build/et" "${pkgdir}/usr/bin/htm"
install -D -m 0755 "${srcdir}/${_ghname}-${_tarname}-v${pkgver}/build/et" "${pkgdir}/usr/bin/htmd"
}
package_eternalterminal-server() {
pkgdesc='Re-Connectable Terminal connection. Includes only the server.'
conflicts=('eternalterminal' 'eternalterminal-client')
cd "${srcdir}/${_ghname}-${_tarname}-v${pkgver}/build"
msg2 "Installing ${_ghname} server to package root"
install -D -m 0755 "${srcdir}/${_ghname}-${_tarname}-v${pkgver}/build/etserver" "${pkgdir}/usr/bin/etserver"
install -D -m 0755 "${srcdir}/${_ghname}-${_tarname}-v${pkgver}/build/etterminal" "${pkgdir}/usr/bin/etterminal"
install -D -m 0644 "${srcdir}/${_ghname}-${_tarname}-v${pkgver}/systemctl/et.service" "${pkgdir}/usr/lib/systemd/system/et.service"
install -D -m 0644 "${srcdir}/${_ghname}-${_tarname}-v${pkgver}/etc/et.cfg" "${pkgdir}/etc/et.cfg"
}
package_eternalterminal() {
pkgdesc='Re-Connectable Terminal connection. Includes both client and server.'
conflicts=('eternalterminal-client' 'eternalterminal-server')
cd "${srcdir}/${_ghname}-${_tarname}-v${pkgver}/build"
msg2 "Installing ${_ghname} to package root"
install -D -m 0755 "${srcdir}/${_ghname}-${_tarname}-v${pkgver}/build/et" "${pkgdir}/usr/bin/et"
install -D -m 0755 "${srcdir}/${_ghname}-${_tarname}-v${pkgver}/build/et" "${pkgdir}/usr/bin/htm"
install -D -m 0755 "${srcdir}/${_ghname}-${_tarname}-v${pkgver}/build/et" "${pkgdir}/usr/bin/htmd"
install -D -m 0755 "${srcdir}/${_ghname}-${_tarname}-v${pkgver}/build/etserver" "${pkgdir}/usr/bin/etserver"
install -D -m 0755 "${srcdir}/${_ghname}-${_tarname}-v${pkgver}/build/etterminal" "${pkgdir}/usr/bin/etterminal"
install -D -m 0644 "${srcdir}/${_ghname}-${_tarname}-v${pkgver}/systemctl/et.service" "${pkgdir}/usr/lib/systemd/system/et.service"
install -D -m 0644 "${srcdir}/${_ghname}-${_tarname}-v${pkgver}/etc/et.cfg" "${pkgdir}/etc/et.cfg"
}
|