void-packages/srcpkgs/toxcore-git/template

32 lines
890 B
Bash

# Template file for 'toxcore-git'
pkgname="toxcore-git"
version="20151211"
revision=2
_commithash="1c8109e524870bb51622c098ce08533535cb3eab"
short_desc="Encrypted peer-to-peer instant messenger protocol library"
maintainer="Spencer Hill <spencernh77@gmail.com>"
license="GPL-3"
homepage="https://tox.chat"
makedepends="libsodium-devel opus-devel libvpx-devel"
hostmakedepends="autoconf automake libtool pkg-config"
distfiles="https://github.com/irungentoo/toxcore/archive/${_commithash}.tar.gz"
checksum=386e39d4d29e6313682c9403dcbe60bbb5a47f5f22d174a6c6eed45170fbb6a0
wrksrc="toxcore-${_commithash}"
build_style="gnu-configure"
pre_configure() {
./autogen.sh
}
# 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
}
}