summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cf011c21b093ad30a8fec96bb737d2866bd70cf1 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Maintainer: Jiachen Yang <farseerfc@gmail.com>
# $Id$
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: HÃ¥vard Pettersson <mail@haavard.me>
# Contributor: naxuroqa <naxuroqa at gmail.com>
# Contributor: Boohbah <boohbah at gmail.com>
# Contributor: Kevin MacMartin <prurigro at gmail dot com>

pkgname=toxcore-static1
_pkgname=c-toxcore
epoch=1
pkgver=0.1.11
pkgrel=1
pkgdesc='Secure, configuration-free, P2P Skype replacement backend'
arch=('x86_64')
url='https://tox.chat'
license=('GPL3')
depends=('libsodium' 'libvpx' 'opus')
makedepends=('check' 'cmake')
conflicts=()
provides=()
backup=()
install=
source=(
	#"${_pkgname}-v${pkgver}.tar.gz::https://github.com/TokTok/${_pkgname}/archive/v${pkgver}.tar.gz"
	"${_pkgname}-v${pkgver}.tar.gz::https://github.com/TokTok/${_pkgname}/releases/download/v${pkgver}/${_pkgname}-${pkgver}.tar.gz"
	#"${_pkgname}-v${pkgver}.tar.lz::https://github.com/TokTok/${_pkgname}/releases/download/v${pkgver}/${_pkgname}-v${pkgver}.tar.lz"
	#"${_pkgname}-v${pkgver}.tar.lz.asc::https://github.com/TokTok/${_pkgname}/releases/download/v${pkgver}/${_pkgname}-v${pkgver}.tar.lz.asc"
	#"pr504.patch::https://github.com/TokTok/c-toxcore/commit/d4414ffa3acf9e7ab5158e6c7a69c115ccb1a308.patch"
        )
sha512sums=('4cc853c549c9ea9e2b48cf144b2a5f5d43e79c1103911beb0e8a827d24e40520907c2cef3c1eb05a37a7d0223b33dee352a3fc7a48e76a1a4947989b17f44e88'                    )

prepare() {
  cd $_pkgname-$pkgver
  # sed -i "s|/usr/local|/usr|" other/bootstrap_daemon/tox-bootstrapd.service
  # sed -i "/Rpath/d;/RPATH/d" CMakeLists.txt
}

build() {
  cd $_pkgname-$pkgver
  #autoreconf -if
  #./configure \
  #  --prefix=/usr \
  #  --enable-daemon \
  #  --disable-ntox \
  #  --enable-tests
  cmake -DCMAKE_INSTALL_PREFIX=/opt/toxcore-static1 \
        -DDHT_BOOTSTRAP=off \
        -DBOOTSTRAP_DAEMON=off \
        -DENABLE_STATIC=on \
        -DENABLE_SHARED=off \
        -DBUILD_NTOX=off
  make
}

check() {
  cd $_pkgname-$pkgver
  #make check
  # make test ## test fail on i686 
}

package() {
  cd $_pkgname-$pkgver
  make DESTDIR="$pkgdir" install
  # install -Dm644 "$srcdir/toxcore.conf" "$pkgdir/usr/lib/sysusers.d/toxcore.conf"
  # install -Dm644 ./other/bootstrap_daemon/tox-bootstrapd.service "$pkgdir/usr/lib/systemd/system/tox-bootstrapd.service"
  # install -Dm644 ./other/bootstrap_daemon/tox-bootstrapd.conf "$pkgdir/etc/tox-bootstrapd.conf"
}