53 lines
1.5 KiB
Bash
53 lines
1.5 KiB
Bash
# Template file for 'notcurses'
|
|
pkgname=notcurses
|
|
version=2.2.6
|
|
revision=2
|
|
build_style=cmake
|
|
configure_args="-DUSE_STATIC=ON $(vopt_bool man USE_PANDOC)"
|
|
hostmakedepends="pkg-config $(vopt_if man pandoc)"
|
|
makedepends="libunistring-devel ffmpeg-devel ncurses-libtinfo-devel qrcodegen-devel doctest-devel
|
|
readline-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"
|
|
checksum=0507e507f9843a494aa66f31e419add5fbdbceb8fbc9345f3e6d4b55ed8a89d9
|
|
patch_args=-Np1
|
|
|
|
build_options="man"
|
|
desc_option_man="Use pandoc for manpages"
|
|
|
|
case "$XBPS_MACHINE" in
|
|
x86_64*|i686|ppc64le*) build_options_default="man" ;;
|
|
esac
|
|
|
|
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
|
|
if [ "$build_option_man" ]; then
|
|
vmove usr/share/man/man3
|
|
fi
|
|
}
|
|
}
|
|
|
|
notcurses-progs_package() {
|
|
depends="notcurses-${version}_${revision}"
|
|
short_desc+=" - programs"
|
|
pkg_install() {
|
|
vmove usr/bin
|
|
vmove usr/share/notcurses
|
|
if [ "$build_option_man" ]; then
|
|
vmove usr/share/man/man1
|
|
fi
|
|
}
|
|
}
|