blob: bfd2a469227ff058c8781821de6c78fc04a61457 (
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
|
# 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='5.0.7'
pkgrel=1
arch=('x86_64')
depends=(
'libsodium' 'gflags' 'protobuf' 'libutempter'
)
makedepends=(
'libsodium' 'gflags' 'protobuf' 'libutempter'
'cmake' 'unzip' 'wget'
)
url='https://mistertea.github.io/EternalTerminal/'
license=('Apache')
source=(
"https://github.com/MisterTea/${_ghname}/archive/${_tarname}-v${pkgver}.tar.gz"
)
sha256sums=(
'6c05fcf34a108d7d990a9a0eddfa6667f8bfb012e1f542c07d216fa01ececb36'
)
prepare() {
cd "${srcdir}/${_ghname}-${_tarname}-v${pkgver}"
msg2 'Preparing directories'
mkdir -p build
}
build() {
cd "${srcdir}/${_ghname}-${_tarname}-v${pkgver}/build"
msg2 'Running cmake'
cmake ../
msg2 "Building ${_ghname}"
make
}
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 0644 "${srcdir}/${_ghname}-${_tarname}-v${pkgver}/debian/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 0644 "${srcdir}/${_ghname}-${_tarname}-v${pkgver}/debian/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"
}
|