void-packages/srcpkgs/toxcore-git/template

40 lines
1.1 KiB
Bash

# Template file for 'toxcore-git'
pkgname=toxcore-git
version=20160417
revision=1
build_style=gnu-configure
_commithash=532629d486e3361c7d8d95b38293cc7d61dc4ee5
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/irungentoo/toxcore/archive/${_commithash}.tar.gz"
checksum=0e85ed1687a85b17feb674fdea49205b0d9ddde793eb55857d7cdd5381a2b71a
wrksrc="toxcore-${_commithash}"
configure_args="--enable-daemon"
system_accounts="toxbootstrapd"
toxbootstrapd_homedir="/etc/toxbootstrapd"
make_dirs="/etc/toxbootstrapd 0700 toxbootstrapd toxbootstrapd"
pre_configure() {
./autogen.sh
}
post_install() {
vsv toxbootstrapd
}
# Development package
toxcore-devel-git_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/pkgconfig
}
}