summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2021-10-23 11:00:19 -0700
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2021-10-23 11:00:19 -0700
commitdaed84af7a355ed33df6249c23408f418df79feb (patch)
tree8131689207117029876cbac653cb422a317ee697
parentRebuild because broken for unknown reason (diff)
downloadqtox-daed84af7a355ed33df6249c23408f418df79feb.tar.xz
Rebuild for toxcore 1:0.2.12-3
-rw-r--r--PKGBUILD6
1 files changed, 5 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 2618514..bf225e0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,7 +13,7 @@ _offline=0
pkgname=qtox
_pkgname=qTox
pkgver=1.17.3
-pkgrel=3.2
+pkgrel=4
_gitver='8eed684c37bd711de2ca4bd863f5f0509edcdc2d'
pkgdesc='a chat, voice, video, and file transfer IM client using the encrypted peer-to-peer Tox protocol'
arch=('x86_64' 'aarch64')
@@ -51,6 +51,7 @@ validpgpkeys=('DA262CC93C0E1E525AD21C8596775D454B8EBF44' # - sudden6 <sudden6@g
prepare() {
# disable -Werror for release packaging
cd $_pkgname
+
sed -e 's|-Werror||' -i CMakeLists.txt
sed -e 's|Enable automatic update check" ON|Enable automatic update check" OFF|' -i CMakeLists.txt
}
@@ -59,6 +60,7 @@ build() {
cd $_pkgname
mkdir -p build
cd build
+
# gcc 10.2 + qt 5.15 + pie = segfault
export CFLAGS="$CFLAGS -O3 -fstack-protector-all -flto=auto"
export CXXFLAGS="$CXXFLAGS -O3 -fstack-protector-all -flto=auto"
@@ -75,6 +77,7 @@ if [ "$_offline" == "0" ]; then
check() {
cd $_pkgname
cd build
+
make test
}
fi
@@ -82,5 +85,6 @@ fi
package() {
cd $_pkgname
cd build
+
make DESTDIR="$pkgdir" install
}