void-packages/srcpkgs/wordgrinder/template
2020-07-01 00:04:37 +02:00

41 lines
1.3 KiB
Bash

# Template file for 'wordgrinder'
pkgname=wordgrinder
version=0.7.2
revision=2
hostmakedepends="pkg-config ninja lua53"
makedepends="libXft-devel lua53-devel"
short_desc="A terminal-based word processor"
maintainer="Andrew Benson <abenson+void@gmail.com>"
license="MIT"
homepage="http://cowlark.com/wordgrinder"
distfiles="https://github.com/davidgiven/wordgrinder/archive/${version}.tar.gz"
checksum=4e1bc659403f98479fe8619655f901c8c03eb87743374548b4d20a41d31d1dff
do_configure() {
export PKG_CONFIG_PATH=${XBPS_CROSS_BASE}/usr/lib/pkgconfig:${XBPS_CROSS_BASE}/usr/share/pkgconfig
export PKG_CONFIG_LIBDIR=${XBPS_CROSS_BASE}/usr/lib/pkgconfig
export PKG_CONFIG_SYSROOT_DIR=${XBPS_CROSS_BASE}
LDFLAGS+=" -lX11 "
make wg-build/build.ninja LUA_PACKAGE=lua LUA_INTERPRETER=/usr/bin/lua XFT_PACKAGE=xft
}
do_build() {
ninja -f wg-build/build.ninja bin/xwordgrinder-builtin-x11-release
ninja -f wg-build/build.ninja bin/wordgrinder-builtin-curses-release
ninja -f wg-build/build.ninja bin/wordgrinder.1
}
do_install() {
vbin bin/wordgrinder-builtin-curses-release wordgrinder
vbin bin/xwordgrinder-builtin-x11-release xwordgrinder
vman bin/wordgrinder.1
vlicense licenses/COPYING.WordGrinder
}
wordgrinder-x11_package() {
short_desc+=" - x11 frontend"
depends="${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/bin/xwordgrinder
}
}