void-packages/srcpkgs/dpp/template

27 lines
813 B
Bash

# Template file for 'dpp'
pkgname=dpp
version=10.0.34
revision=1
build_style=cmake
configure_args="-DDPP_NO_VCPKG=ON -DDPP_USE_EXTERNAL_JSON=ON -DDPP_CORO=ON"
cmake_builddir=build
hostmakedepends="pkg-config"
makedepends="opus-devel zlib-devel openssl-devel json-c++"
short_desc="C++ Discord API Library for Bots"
maintainer="Lunar Starstrum <lunar@forsaken-borders.net>"
license=Apache-2.0
homepage="https://dpp.dev"
distfiles="https://github.com/brainboxdotcc/DPP/archive/refs/tags/v${version}.tar.gz"
checksum=58eee75e81ac305db0b71a8cd4b821ff3cabcdfa0575e56ba5e4ce543531bd2f
dpp-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/lib/cmake
vmove usr/lib/pkgconfig
vmove usr/include
vmove "usr/lib/*.so"
}
}