void-packages/srcpkgs/dpp/template

27 lines
815 B
Bash

# Template file for 'dpp'
pkgname=dpp
version=10.0.29
revision=2
build_style=cmake
configure_args="-DDPP_NO_VCPKG=ON -DDPP_USE_EXTERNAL_JSON=ON"
cmake_builddir=build
hostmakedepends="pkg-config"
makedepends="libsodium-devel 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=a37e91fbdabee20cb0313700588db4077abf0ebabafe386457d999d22d2d0682
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"
}
}