blob: 627d275820403653523c23b3cdbc68d3d0d2d5c6 (
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
|
# Maintainer: Danilo Bargen <aur at dbrgn dot ch>
# You can find the PGP signing key (573ACDA6) here: https://keybase.io/threema
pkgname=threema-web
pkgver=1.8.2
pkgrel=1
pkgdesc="The Threema Web client, packaged to run locally."
arch=('x86_64' 'i686')
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"
)
sha256sums=(
'3089d16d1587d0315ec3ba39194ec1e449070b04bae3f8c32f5e02b7383ba4fc'
'SKIP' # PGP signature
'6cb24b36278ef9d5b57d056d5b8428f82b94cb92f7ffc0ef4bc3eb5278488514'
)
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 service file
install -Dm640 -o root -g root ${srcdir}/threema-web.service "${pkgdir}/etc/systemd/system/"
}
# vim:set ts=2 sw=2 et:
|