void-packages/srcpkgs/toxcore/template
2020-06-02 17:16:33 +02:00

31 lines
978 B
Bash

# Template file for 'toxcore'
pkgname=toxcore
version=0.2.12
revision=1
wrksrc="c-toxcore-${version}"
build_style=cmake
configure_args="-DMUST_BUILD_TOXAV=ON -DBUILD_TOXAV=ON"
hostmakedepends="pkg-config"
makedepends="libconfig-devel libsodium-devel libvpx-devel opus-devel"
short_desc="Encrypted peer-to-peer instant messenger protocol library"
maintainer="Spencer Hill <spencernh77@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://tox.chat"
changelog="https://raw.githubusercontent.com/TokTok/c-toxcore/master/CHANGELOG.md"
distfiles="https://github.com/TokTok/c-toxcore/archive/v${version}.tar.gz"
checksum=30ae3263c9b68d3bef06f799ba9d7a67e3fad447030625f0ffa4bb22684228b0
post_install() {
vsconf other/bootstrap_daemon/tox-bootstrapd.conf
}
toxcore-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
}
}