upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / qtox / trunk / PKGBUILD
blob298c62f9bc7de5635d27bcb7facd4d4610b27d4d
1 # Maintainer: Jiachen Yang <farseerfc@gmail.com>
2 # AUR Maintainer: Vlad M. <vlad@archlinux.net>
3 # Contributor: Håvard Pettersson <mail@haavard.me>
4 # Contributor: Kevin MacMartin <prurigro at gmail dot com>
6 pkgname=qtox
7 _pkgname=qTox
8 pkgver=1.17.6
9 pkgrel=2
10 _gitver='c0e9a3b79609681e5b9f6bbf8f9a36cb1993dc5f'
11 pkgdesc='a chat, voice, video, and file transfer IM client using the encrypted peer-to-peer Tox protocol'
12 arch=('x86_64')
13 url='https://github.com/qTox/qTox'
14 license=('GPL3')
15 depends=('desktop-file-utils'
16          'libxss'
17          'openal'
18          'ffmpeg'
19          'qrencode'
20          'qt5-svg'
21          'sqlcipher'
22          'libexif'
23          'toxcore'
24          'sonnet'
25          'snorenotify'
26          'libgl')
27 makedepends=('qt5-tools' 'git' 'check' 'cmake' 'mesa' 'libglvnd')
29 source=( 
30         "$pkgname-$pkgver.tar.lz::https://github.com/$_pkgname/$_pkgname/releases/download/v$pkgver/v$pkgver.tar.lz"
31         "$pkgname-$pkgver.tar.lz.asc::https://github.com/$_pkgname/$_pkgname/releases/download/v$pkgver/v$pkgver.tar.lz.asc"
32         )
33 sha512sums=('2dc761248bf937044d3135c196a2e7b6986846369d493ecc831fd8519cfac22a7b5472f452482c2afccbe2ad73b7a36c174408f75ab142789dc06613b9e8c9f3'
34             'SKIP')
36 ## GPG key fingerprints taken from https://github.com/qTox/qTox/blob/$_gitver/README.md
37 validpgpkeys=('DA262CC93C0E1E525AD21C8596775D454B8EBF44'  # sudden6 <sudden6@gmx.at>
38               'BA7883E22F9D35945BA3376053137C3033F09008'  # Zetok Zalbavar <zetok@openmailbox.org>
39               '1157616BBD860C539926F8139591A163FF9BE04C'  # - antis81
40               '31039166FA902CA50D05D6085AF9F2E29107C727'  # - Diadlo
41               'C7A2552D0B250F983827742C133203A3AC399151'  # - initramfs
42               '2880C860D95C909D3DA45C687E086DD661263264'  # - tux3
43           '74ADB7A7F8ECC1009916C4E42AA8E0DA1B31FB3C'  # - AnthonyBilinski subkey
44           '7EB339FE881747E701B7D472EBE36E66A8429B99'  # - AnthonyBilinski
45           'CA9221C5389B7C50AA5F779352A50775BE13DF17'  # - noavarice
46           '141C880E8BA25B198D0F850F7C132143C1A3A7D4'  # – tox-user
47              )
49 prepare() {
50   cd $_pkgname
51   # disable -Werror for release packaging
52   sed -e 's|-Werror||' -i CMakeLists.txt
55 build() {
56   cd $_pkgname
57   mkdir -p build
58   cd build
59   export CXXFLAGS+=' -fpermissive'
60   cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
61           -DDESKTOP_NOTIFICATIONS=ON \
62           -DGIT_VERSION=$_gitver \
63           -DGIT_DESCRIBE=v$pkgver
64   make
67 check() {
68   cd $_pkgname
69   cd build
70   make test
73 package() {
74   cd $_pkgname
75   cd build
76   make DESTDIR="$pkgdir" install