summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--PKGBUILD7
1 files changed, 5 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 22d1408..f335445 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,7 +13,7 @@ _offline=0
pkgname=qtox
_pkgname=qTox
pkgver=1.17.6
-pkgrel=4.3
+pkgrel=4.5
_gitver='8eed684c37bd711de2ca4bd863f5f0509edcdc2d'
pkgdesc='A Qt5 chat, voice, video, and file transfer IM client using the encrypted peer-to-peer Tox protocol'
arch=('x86_64' 'aarch64')
@@ -23,7 +23,7 @@ options=('lto')
depends=('desktop-file-utils'
'libxss'
'openal'
- 'ffmpeg'
+ 'ffmpeg4.4'
'qrencode'
'qt5-svg'
'sqlcipher'
@@ -57,6 +57,8 @@ prepare() {
sed -e 's|-Werror||' -i CMakeLists.txt
sed -e 's|Enable automatic update check" ON|Enable automatic update check" OFF|' -i CMakeLists.txt
+
+ sed -s 's|${CMAKE_SOURCE_DIR}/libs/lib/pkgconfig:/opt/ffmpeg/lib/pkgconfig:$ENV{PKG_CONFIG_PATH})|${CMAKE_SOURCE_DIR}/libs/lib/pkgconfig:/usr/lib/ffmpeg4.4/pkgconfig:$ENV{PKG_CONFIG_PATH})|' -i CMakeLists.txt
}
build() {
@@ -68,6 +70,7 @@ build() {
# gcc 10.2 + qt 5.15 + pie = segfault
export CFLAGS="$CFLAGS -O3 -fstack-protector-all"
export CXXFLAGS="$CXXFLAGS -O3 -fstack-protector-all"
+
cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
-DDESKTOP_NOTIFICATIONS=ON \
-DGIT_VERSION=$_gitver \