04b9978a29
* wine is kept at -Np0 ```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
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
|
|
}
|
|
}
|