summaryrefslogtreecommitdiff
path: root/PKGBUILD
blob: 38c8b3e0e4f5bd743b457e69be9744dfe0ad36aa (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.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 <jfreegman@gmail.com>

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

}