/
PKGBUILD
35 lines (30 loc) · 1.02 KB
/
PKGBUILD
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
pkgname=qtox
_pkgname=qTox
pkgver=1.17.6
_commit=0a1a781249f1c044dc06c67fda8966f7c91b743c
pkgrel=7
pkgdesc='Powerful Tox client that follows the Tox design guidelines while running on all major platforms.'
arch=('x86_64')
url='https://qtox.github.io/'
license=('GPL3')
depends=('ffmpeg' 'libxkbcommon' 'libxss' 'openal' 'qrencode' 'qt5-svg'
'sqlcipher' 'toxcore' 'libvpx' 'sonnet')
makedepends=('qt5-tools')
source=("https://github.com/qTox/qTox/archive/v${pkgver}.tar.gz"
"https://github.com/qTox/qTox/commit/5b120c18ef4a20ea27dcedd89b043b0d22ca534e.diff")
#source=("https://github.com/qTox/qTox/archive/${_commit}.zip")
md5sums=('2ddb63ee5dc04ace3458cb7caf07e553'
'255e683ec180ad445eb93e9796648f5a')
prepare() {
cd ${_pkgname}-${pkgver}
#patch -Rp1 -i ${srcdir}/5b120c18ef4a20ea27dcedd89b043b0d22ca534e.diff
}
build() {
cmake -B build -S ${_pkgname}-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
cmake --build build
}
package() {
DESTDIR=${pkgdir} cmake --install build
}