community/qtox to 1.17.3-1

This commit is contained in:
Kevin Mihelich 2020-11-25 01:17:05 +00:00
parent 744dd1b5d3
commit 53f19c2317

View file

@ -8,12 +8,12 @@
pkgname=qtox
_pkgname=qTox
pkgver=1.17.2
pkgrel=2
pkgver=1.17.3
pkgrel=1
_gitver='8eed684c37bd711de2ca4bd863f5f0509edcdc2d'
pkgdesc='Powerful Tox client written in C++/Qt that follows the Tox design guidelines'
pkgdesc='a chat, voice, video, and file transfer IM client using the encrypted peer-to-peer Tox protocol'
arch=('x86_64')
url='https://github.com/tux3/qTox'
url='https://github.com/qTox/qTox'
license=('GPL3')
depends=('desktop-file-utils'
'libxss'
@ -33,7 +33,7 @@ source=(
"$pkgname-$pkgver.tar.lz.asc::https://github.com/$_pkgname/$_pkgname/releases/download/v$pkgver/v$pkgver.tar.lz.asc"
'atomic.patch'
)
sha512sums=('c8587bf33edca7b5966b9b64dae824ffd579bd1469949f1f2eca7270b31af2bb760230b83540f815816c8e20a1001f0c7952e7a0d20c99937f29629bbdc2ae51'
sha512sums=('44886815ca8b2086b802b000c5a8d65315d49170dbec7a311335e70ff79aeb16cc0049ab320df84bc5659bf92e77aee0b846e2c4202890560155242e07776a6f'
'SKIP'
'd2386cda78958e6a154a9612535d6f9f714aa80f07e8c33f9f8ad63b1f6f3599508ab184a67ba04254f9621b66ec6283f560722a3895ca3c2ab4ced9e3d7148d')
@ -51,19 +51,16 @@ validpgpkeys=('DA262CC93C0E1E525AD21C8596775D454B8EBF44' # sudden6 <sudden6@gmx
)
prepare() {
cd $_pkgname
# disable -Werror for release packaging
sed -e 's|-Werror||' -i CMakeLists.txt
if [[ $CARCH == "arm" || $CARCH == "armv6h" ]]; then
patch -p0 -i atomic.patch
patch -p0 -i ../atomic.patch
fi
}
check() {
cd build
make test
}
build() {
cd $_pkgname
mkdir -p build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
@ -72,7 +69,14 @@ build() {
make
}
check() {
cd $_pkgname
cd build
make test
}
package() {
cd $_pkgname
cd build
make DESTDIR="$pkgdir" install
}