void-packages/srcpkgs/toxcore-git/template
2016-08-07 21:38:55 -04:00

39 lines
1.1 KiB
Bash

# Template file for 'toxcore-git'
pkgname=toxcore-git
version=20160707
revision=1
build_style=gnu-configure
_commithash=755f084e8720b349026c85afbad58954cb7ff1d4
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=2d4a0d096bdb81b12b10551765fb9f87270e170f10f387f700b3def68cb6c35c
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
}
}