summaryrefslogtreecommitdiff
path: root/PKGBUILD
blob: 7fed17c612f9fa257694f7ea114a3fee36dd9b13 (plain)
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
36
37
38
39
40
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

}