2016-12-31 12:59:19 +01:00
|
|
|
# Template file for 'toxcore'
|
|
|
|
pkgname=toxcore
|
2017-04-30 23:58:50 +02:00
|
|
|
version=0.1.8
|
2016-12-31 12:59:19 +01:00
|
|
|
revision=1
|
|
|
|
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"
|
2017-04-30 23:58:50 +02:00
|
|
|
checksum=f8b44a54b775a4cb3b6f5efb37d5954bdc6f142c982169f1fad3300c6bf25639
|
2016-12-31 12:59:19 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|