blob: 4981056d177a6242bfcb75174893ebbdd2f0ea17 (
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
|
# Maintainer: Danilo Bargen <aur at dbrgn dot ch>
#
# You can find the PGP signing key (573ACDA6) here: https://keybase.io/threema
#
# To directly download the key:
# curl https://keybase.io/threema/pgp_keys.asc | gpg --import
# gpg --lsign E7ADD9914E260E8B35DFB50665FDE935573ACDA6
pkgname=threema-web
pkgver=2.5.7
pkgrel=1
pkgdesc="The Threema Web client, packaged to run locally on port 4242"
arch=('any')
url="https://github.com/threema-ch/threema-web"
license=('AGPL3')
depends=('python3')
makedepends=()
provides=('threema-web')
conflicts=('threema-web-git')
options=('!strip')
source=(
"https://github.com/threema-ch/threema-web/releases/download/v${pkgver}/threema-web-${pkgver}-gh.tar.gz"
"https://github.com/threema-ch/threema-web/releases/download/v${pkgver}/threema-web-${pkgver}-gh.tar.gz.asc"
"threema-web.service"
"launch.py"
)
sha256sums=(
'1d8d867f5d5923c2b091c7f5851812a7cfa5550623f4ad51f2608d4298b4b40a'
'SKIP'
'1fbf9c4af5548138f75b00d2bd3de462c658db0c14e9897d09b79f8aa235db9e'
'0968289ce31f750834b8f495951e1a29a2971d38e9d4d20213bb2a1f174a2fb1'
)
validpgpkeys=('E7ADD9914E260E8B35DFB50665FDE935573ACDA6')
install=threema-web.install
build() {
cd "${srcdir}/threema-web-${pkgver}-gh/"
# Update version
find "${srcdir}" \
-type f \
-exec sed -i "s/${pkgver}-gh/${pkgver}-gh-aur/g" {} +
}
package() {
# Create directories
mkdir -p "${pkgdir}/opt/" "${pkgdir}/etc/systemd/system/"
# Install code
cp -R "threema-web-${pkgver}-gh/" "${pkgdir}/opt/threema-web"
chown -R root:http "${pkgdir}/opt/threema-web"
find "${pkgdir}/opt/threema-web" -type f -exec chmod 640 {} \;
find "${pkgdir}/opt/threema-web" -type d -exec chmod 750 {} \;
# Install launcher
install -Dm644 -o root -g http "${srcdir}/launch.py" "${pkgdir}/opt/threema-web/"
# Install service file
install -Dm640 -o root -g root "${srcdir}/threema-web.service" "${pkgdir}/etc/systemd/system/"
}
# vim:set ts=2 sw=2 et:
|