void-packages/srcpkgs/re/template

32 lines
796 B
Bash

# Template file for 're'
pkgname=re
version=3.11.0
revision=1
build_style=cmake
configure_args="-DUSE_OPENSSL=yes"
makedepends="openssl-devel zlib-devel"
short_desc="Portable library for real-time communications"
maintainer="John <me@johnnynator.dev>"
license="BSD-3-Clause"
homepage="https://github.com/baresip/re/"
distfiles="https://github.com/baresip/re/archive/refs/tags/v${version}.tar.gz"
checksum=a29dbdbbacd27461b9c8e94b0e52773f3b1396a64e31e258635f18cf5f27e44e
CFLAGS=-D_GNU_SOURCE
post_install() {
vlicense LICENSE
}
re-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision} openssl-devel zlib-devel"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
vmove usr/lib/cmake
}
}