void-packages/srcpkgs/toxcore/template

40 lines
1.0 KiB
Bash

# Template file for 'toxcore'
pkgname=toxcore
version=0.1.10
revision=2
build_style=gnu-configure
wrksrc="c-toxcore-${version}"
hostmakedepends="autoconf automake libtool pkg-config"
makedepends="libsodium-devel opus-devel libvpx-devel"
short_desc="Encrypted peer-to-peer instant messenger protocol library"
maintainer="Spencer Hill <spencernh77@gmail.com>"
license="GPL-3"
homepage="https://tox.chat"
distfiles="https://github.com/TokTok/c-toxcore/archive/v${version}.tar.gz"
checksum=7ec99c71a31e612ba458d708e05174afb2852cfbb4504ccb9456bd706fc27bd1
configure_args="--enable-daemon"
system_accounts="toxbootstrapd"
toxbootstrapd_homedir="/etc/toxbootstrapd"
make_dirs="/etc/toxbootstrapd 0700 toxbootstrapd toxbootstrapd"
replaces="toxcore-git>=0"
pre_configure() {
./autogen.sh
}
post_install() {
vsv toxbootstrapd
}
# Development package
toxcore-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/pkgconfig
}
}