diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..7fed17c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Jiachen Yang <farseerfc@gmail.com> +# AUR Maintainer: Vlad M. <vlad@archlinux.net> + +_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 <jfreegman@gmail.com> + +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 + +} |