void-packages/srcpkgs/notcurses/template

52 lines
1.4 KiB
Bash
Raw Normal View History

2020-11-17 15:53:28 +01:00
# Template file for 'notcurses'
pkgname=notcurses
2020-12-03 17:47:08 +01:00
version=2.0.9
2020-11-28 14:59:16 +01:00
revision=1
2020-11-17 15:53:28 +01:00
build_style=cmake
2020-11-24 03:55:49 +01:00
configure_args="-DUSE_STATIC=ON $(vopt_bool man USE_PANDOC)"
hostmakedepends="pkg-config $(vopt_if man pandoc)"
2020-11-17 15:53:28 +01:00
makedepends="libunistring-devel ffmpeg-devel ncurses-libtinfo-devel qrcodegen-devel doctest-devel"
depends="ncurses-base"
short_desc="Blingful character graphics/TUI library"
maintainer="mobinmob <mobinmob@disroot.org>"
license="Apache-2.0"
homepage="https://nick-black.com/dankwiki/index.php/Notcurses"
changelog="https://raw.githubusercontent.com/dankamongmen/notcurses/master/NEWS.md"
distfiles="https://github.com/dankamongmen/notcurses/archive/v${version}.tar.gz"
2020-12-03 17:47:08 +01:00
checksum=b1403efd0b1fe8fcb472542cf4f10a201d593745a88287df5d05a7fce987ca7d
2020-11-17 15:53:28 +01:00
2020-11-24 03:55:49 +01:00
build_options="man"
desc_option_man="Use pandoc for manpages"
case "$XBPS_MACHINE" in
x86_64*|i686|ppc64le) build_options_default="man" ;;
esac
2020-11-17 15:53:28 +01:00
notcurses-devel_package() {
depends="notcurses-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove /usr/lib/cmake
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/share/doc
2020-11-24 03:55:49 +01:00
if [ "$build_option_man" ]; then
vmove usr/share/man/man3
fi
2020-11-17 15:53:28 +01:00
}
}
notcurses-progs_package() {
depends="notcurses-${version}_${revision}"
short_desc+=" - programs"
pkg_install() {
vmove usr/bin
vmove usr/share/notcurses
2020-11-24 03:55:49 +01:00
if [ "$build_option_man" ]; then
vmove usr/share/man/man1
fi
2020-11-17 15:53:28 +01:00
}
}