# Maintainer: Jiachen Yang # AUR Maintainer: Vlad M. _pkg=toxic pkgname=toxic-nox pkgdesc='CLI Tox client' license=('GPL3') pkgver=0.11.1 pkgrel=1 conflicts=('toxic') depends=('curl' 'freealut' 'qrencode' 'toxcore') arch=('x86_64') url='https://github.com/JFreegman/toxic' source=("$_pkg-$pkgver.tar.gz::https://github.com/JFreegman/toxic/archive/v$pkgver/toxic-$pkgver.tar.gz" "$_pkg-$pkgver.tar.gz.asc::https://github.com/JFreegman/toxic/releases/download/v$pkgver/toxic-$pkgver.tar.gz.asc" ) sha512sums=('53fba05271020547e779d63bea777f90f56b61e3eb2775afabe92e047a8347b4a9166628bb59d2eaab2e36a1121d791206ac68ff6604cb06fac6aaddbb05e787' 'SKIP') validpgpkeys=('BABD00573A065BFA90D53D563627F3144076AE63') # Jfreegman flags="DISABLE_X11=1 DISABLE_DESKTOP_NOTIFY=1 DISABLE_GAMES=1 ENABLE_RELEASE=1" prepare() { cd "$_pkg-$pkgver" } build() { cd "$_pkg-$pkgver" # enabled X11 on konsole may cause https://github.com/JFreegman/toxic/issues/277 # but we can only do video and call with X11 enabled https://bugs.archlinux.org/task/52836 LDFLAGS=-lpthread make $flags PREFIX=/usr } package() { cd "$_pkg-$pkgver" make $flags PREFIX=/usr DESTDIR="$pkgdir" install }