41 lines
1.3 KiB
Bash
41 lines
1.3 KiB
Bash
# Template file for 'wordgrinder'
|
|
pkgname=wordgrinder
|
|
version=0.8
|
|
revision=1
|
|
hostmakedepends="pkg-config ninja lua53"
|
|
makedepends="libXft-devel lua53-devel"
|
|
short_desc="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=856cbed2b4ccd5127f61c4997a30e642d414247970f69932f25b4b5a81b18d3f
|
|
|
|
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 .obj/build.ninja LUA_PACKAGE=lua LUA_INTERPRETER=/usr/bin/lua XFT_PACKAGE=xft
|
|
}
|
|
|
|
do_build() {
|
|
ninja -f .obj/build.ninja bin/xwordgrinder-builtin-x11-release
|
|
ninja -f .obj/build.ninja bin/wordgrinder-builtin-curses-release
|
|
ninja -f .obj/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
|
|
}
|
|
}
|