PKGBUILDs/community/qtox/PKGBUILD

85 lines
2.8 KiB
Bash
Raw Normal View History

2018-07-10 02:19:16 +00:00
# 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>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch to explicitly link against libatomic for v5/v6
pkgname=qtox
_pkgname=qTox
2020-11-25 01:17:05 +00:00
pkgver=1.17.3
2021-02-05 01:42:58 +00:00
pkgrel=2
_gitver='c0e9a3b79609681e5b9f6bbf8f9a36cb1993dc5f'
2020-11-25 01:17:05 +00:00
pkgdesc='a chat, voice, video, and file transfer IM client using the encrypted peer-to-peer Tox protocol'
2018-07-10 02:19:16 +00:00
arch=('x86_64')
2020-11-25 01:17:05 +00:00
url='https://github.com/qTox/qTox'
2018-07-10 02:19:16 +00:00
license=('GPL3')
depends=('desktop-file-utils'
'libxss'
'openal'
'ffmpeg'
'qrencode'
'qt5-svg'
'sqlcipher'
'libexif'
'toxcore'
2020-04-28 18:22:02 +00:00
'sonnet'
2021-02-05 01:42:58 +00:00
'snorenotify'
2018-07-10 02:19:16 +00:00
'libgl')
makedepends=('qt5-tools' 'git' 'check' 'cmake' 'mesa' 'libglvnd')
source=(
2020-04-28 18:22:02 +00:00
"$pkgname-$pkgver.tar.lz::https://github.com/$_pkgname/$_pkgname/releases/download/v$pkgver/v$pkgver.tar.lz"
"$pkgname-$pkgver.tar.lz.asc::https://github.com/$_pkgname/$_pkgname/releases/download/v$pkgver/v$pkgver.tar.lz.asc"
2018-07-10 02:19:16 +00:00
'atomic.patch'
)
2020-11-25 01:17:05 +00:00
sha512sums=('44886815ca8b2086b802b000c5a8d65315d49170dbec7a311335e70ff79aeb16cc0049ab320df84bc5659bf92e77aee0b846e2c4202890560155242e07776a6f'
2018-07-10 02:19:16 +00:00
'SKIP'
2020-04-28 18:22:02 +00:00
'd2386cda78958e6a154a9612535d6f9f714aa80f07e8c33f9f8ad63b1f6f3599508ab184a67ba04254f9621b66ec6283f560722a3895ca3c2ab4ced9e3d7148d')
2018-07-10 02:19:16 +00:00
## 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
'74ADB7A7F8ECC1009916C4E42AA8E0DA1B31FB3C' # - AnthonyBilinski subkey
'7EB339FE881747E701B7D472EBE36E66A8429B99' # - AnthonyBilinski
'CA9221C5389B7C50AA5F779352A50775BE13DF17' # - noavarice
'141C880E8BA25B198D0F850F7C132143C1A3A7D4' # tox-user
)
prepare() {
2020-11-25 01:17:05 +00:00
cd $_pkgname
2018-07-10 02:19:16 +00:00
# disable -Werror for release packaging
sed -e 's|-Werror||' -i CMakeLists.txt
if [[ $CARCH == "arm" || $CARCH == "armv6h" ]]; then
2020-11-25 01:17:05 +00:00
patch -p0 -i ../atomic.patch
2018-07-10 02:19:16 +00:00
fi
}
build() {
2020-11-25 01:17:05 +00:00
cd $_pkgname
2018-07-10 02:19:16 +00:00
mkdir -p build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
2021-02-05 01:42:58 +00:00
-DDESKTOP_NOTIFICATIONS=ON \
2018-07-10 02:19:16 +00:00
-DGIT_VERSION=$_gitver \
-DGIT_DESCRIBE=v$pkgver
make
}
2020-11-25 01:17:05 +00:00
check() {
cd $_pkgname
cd build
make test
}
2018-07-10 02:19:16 +00:00
package() {
2020-11-25 01:17:05 +00:00
cd $_pkgname
2018-07-10 02:19:16 +00:00
cd build
make DESTDIR="$pkgdir" install
}