# Maintainer: Jiachen Yang # AUR Maintainer: Vlad M. _pkg=toxic pkgname=toxic-nox pkgdesc='CLI Tox client' license=('GPL3') pkgver=0.10.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=('aec2e6612d639e0210ae68db3368b656647575e3d927444d0726422ff2cf9718dd5a8b3f37a8253cdc3714f09f9f96828dfccf7a7ae12f8a41ce3207f92a684d' 'SKIP') validpgpkeys=('BABD00573A065BFA90D53D563627F3144076AE63') # Jfreegman flags="DISABLE_X11=1 DISABLE_DESKTOP_NOTIFY=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 }