blob: 6cbdfb7a41c263f3e31da5bd3dc3b9edb29e207b (
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
|
# Maintainer: Jiachen Yang <farseerfc@gmail.com>
# AUR Maintainer: Vlad M. <vlad@archlinux.net>
# Contributor: HÃ¥vard Pettersson <mail@haavard.me>
# Contributor: Kevin MacMartin <prurigro at gmail dot com>
pkgname=qtox
_pkgname=qTox
pkgver=1.13.0
pkgrel=2
_gitver='531defd0aa66af1b128f7293bc08718ce2cc064f'
pkgdesc='Powerful Tox client written in C++/Qt that follows the Tox design guidelines'
arch=('x86_64')
url='https://github.com/tux3/qTox'
license=('GPL3')
depends=('desktop-file-utils'
'libxss'
'openal'
'gtk2'
'ffmpeg'
'qrencode'
'qt5-svg'
'sqlcipher'
'libexif'
'toxcore')
makedepends=('qt5-tools' 'git' 'check' 'cmake')
#source=("git+https://github.com/qTox/qTox.git#commit=$_gitver")
source=( #"https://github.com/$_pkgname/$_pkgname/releases/download/v$pkgver/v$pkgver.tar.gz"
#"$_pkgname-v$pkgver.tar.gz::https://github.com/$_pkgname/$_pkgname/archive/v$pkgver/v$pkgver.tar.gz"
"qtox-$pkgver.tar.lz::https://github.com/$_pkgname/$_pkgname/releases/download/v$pkgver/v$pkgver.tar.lz"
"qtox-$pkgver.tar.lz.asc::https://github.com/$_pkgname/$_pkgname/releases/download/v$pkgver/v$pkgver.tar.lz.asc"
#"gcc7fix.patch::https://github.com/qTox/qTox/commit/246e23abf3aa64c494c6abf42c83944eb78f1b16.patch"
#"werror.patch::https://raw.githubusercontent.com/anthonybilinski/tox.pkg/de77c8c4537feeeee583925e114d7b6f5c09fc15/qtox-alpha/debian/patches/0001-backout-werror.patch"
#"autoaccept.patch"
)
sha512sums=('d1cc9f7c3c3c16514f2c3c980f342df017897dfc6527ce47e940ef2828a47b672268f7a62b04db3f69b1565ba7a1906d7242f17d6b22600881f9d0a7abf3eafd'
'SKIP')
## GPG key fingerprints taken from https://github.com/qTox/qTox/blob/$_gitver/README.md
validpgpkeys=('DA262CC93C0E1E525AD21C8596775D454B8EBF44' # sudden6 <sudden6@gmx.at>
'BA7883E22F9D35945BA3376053137C3033F09008' # Zetok Zalbavar <zetok@openmailbox.org>
'1157616BBD860C539926F8139591A163FF9BE04C' # - antis81
'31039166FA902CA50D05D6085AF9F2E29107C727' # - Diadlo
'C7A2552D0B250F983827742C133203A3AC399151' # - initramfs
'2880C860D95C909D3DA45C687E086DD661263264' # - tux3
)
# prepare() {
# patch -p1 <werror.patch
# patch -p1 <autoaccept.patch
# }
check() {
cd build
make test
}
build() {
#cd "$srcdir/$_pkgname-$pkgver"
mkdir -p build
cd build
##qmake-qt5 ENABLE_SYSTRAY_UNITY_BACKEND=NO GIT_VERSION=$_gitver GIT_DESCRIBE=v$pkgver ..
cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
-DGIT_VERSION=$_gitver \
-DGIT_DESCRIBE=v$pkgver \
-DSMILEYS=DISABLED
make
}
package() {
#cd "$_pkgname-$pkgver"
cd build
make DESTDIR="$pkgdir" install
}
|