void-packages/srcpkgs/wordgrinder/template
Andrew Benson dd5ef53c3d New package: wordgrinder-0.7.1
Closes: #11229 [via git-merge-pr]
2018-03-07 19:52:01 -08:00

41 lines
1.4 KiB
Bash

# Template file for 'wordgrinder'
pkgname=wordgrinder
version=0.7.1
revision=1
hostmakedepends="pkg-config ninja lua"
makedepends="ncurses-devel lua-devel zlib-devel libXft-devel libX11-devel
freetype-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=54085af7963e1f67342bc0b1b20d1ccc75494f2e23d401b601cf3089acea747c
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}
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_descr+=" - x11 frontend"
depends="${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/bin/xwordgrinder
}
}