1 # Maintainer: Jiachen Yang <farseerfc@gmail.com>
2 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 # Contributor: Håvard Pettersson <mail@haavard.me>
4 # Contributor: naxuroqa <naxuroqa at gmail.com>
5 # Contributor: Boohbah <boohbah at gmail.com>
6 # Contributor: Kevin MacMartin <prurigro at gmail dot com>
13 pkgdesc='Secure, configuration-free, P2P Skype replacement backend'
15 url='https://tox.chat'
17 depends=('systemd' 'libconfig' 'libsodium' 'libvpx' 'opus')
18 makedepends=('check' 'cmake')
21 backup=('etc/tox-bootstrapd.conf')
23 "${_pkgname}-v${pkgver}.tar.gz::https://github.com/TokTok/${_pkgname}/releases/download/v${pkgver}/${_pkgname}-${pkgver}.tar.gz"
24 "${_pkgname}-v${pkgver}.tar.gz.asc::https://github.com/TokTok/${_pkgname}/releases/download/v${pkgver}/${_pkgname}-${pkgver}.tar.gz.asc"
25 #"${_pkgname}-v${pkgver}.tar.lz::https://github.com/TokTok/${_pkgname}/releases/download/v${pkgver}/${_pkgname}-v${pkgver}.tar.lz"
26 #"${_pkgname}-v${pkgver}.tar.lz.asc::https://github.com/TokTok/${_pkgname}/releases/download/v${pkgver}/${_pkgname}-v${pkgver}.tar.lz.asc"
29 sha512sums=('e9b0d73a2e0460290c8453a0a64fc91deed2e0cf87f945d0ba203b929f19a296571d7140f4df89b06f7e67f2b61894460ce4dd32ab9ecf6ea7d5b67538fadb23'
31 'aa1dcfbdf9b613f5d89e238ff5d01e0ea150ad3162792acb806f51ce07fd9ade1270b310b1285a828dcdf578549b95a89fd9bd198fb205c83f5a5be2c969ea63'
32 'f1534f5f46d0b8e2f21b2bce802f48a8bd45ba6beca34112d44e27b6033352867cd9d25f1c3c35c59faf6e6d727793f3d552d0d9b724c9d09cb83075ca196743')
34 '15D3B9A6B3951DF9854FCA93E786548AE0A0B56B' # RobinLindén<mail+gitlab@robinlinden.eu>
35 'B7008FF12C079BF6E6EA19D1601A604B7E605776' # Robin Lindén <mail@robinlinden.eu>
36 # GPG key fingerprints taken from https://github.com/qTox/qTox/blob/$_gitver/README.md
37 'DA262CC93C0E1E525AD21C8596775D454B8EBF44' # sudden6 <sudden6@gmx.at>
38 'BA7883E22F9D35945BA3376053137C3033F09008' # Zetok Zalbavar <zetok@openmailbox.org>
39 '1157616BBD860C539926F8139591A163FF9BE04C' # - antis81
40 '31039166FA902CA50D05D6085AF9F2E29107C727' # - Diadlo
41 'C7A2552D0B250F983827742C133203A3AC399151' # - initramfs
42 '2880C860D95C909D3DA45C687E086DD661263264' # - tux3
47 sed -i "s|/usr/local|/usr|" other/bootstrap_daemon/tox-bootstrapd.service
48 sed -i "/Rpath/d;/RPATH/d" CMakeLists.txt
52 cd $_pkgname-$pkgver/build
53 cmake -DCMAKE_INSTALL_PREFIX=/usr \
54 -DCMAKE_INSTALL_LIBDIR=/usr/lib \
56 -DBOOTSTRAP_DAEMON=on \
63 cd $_pkgname-$pkgver/build
68 cd $_pkgname-$pkgver/build
69 make DESTDIR="$pkgdir" install
70 install -Dm644 "$srcdir/toxcore.conf" "$pkgdir/usr/lib/sysusers.d/toxcore.conf"
71 install -Dm644 "$srcdir/toxcore.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/toxcore.conf"
72 install -Dm644 ../other/bootstrap_daemon/tox-bootstrapd.service "$pkgdir/usr/lib/systemd/system/tox-bootstrapd.service"
73 install -Dm644 ../other/bootstrap_daemon/tox-bootstrapd.conf "$pkgdir/etc/tox-bootstrapd.conf"