* fpc 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 ```
26 lines
710 B
Bash
26 lines
710 B
Bash
# Template file for 'fbv'
|
|
pkgname=fbv
|
|
version=1.0b
|
|
revision=2
|
|
build_style=configure
|
|
makedepends="libpng-devel libjpeg-turbo-devel giflib-devel"
|
|
short_desc="Framebuffer image viewer"
|
|
maintainer="Duncaen <duncaen@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://www.eclis.ch/fbv/"
|
|
distfiles="http://s-tech.elsat.net.pl/fbv/fbv-${version}.tar.gz"
|
|
checksum=9b55b9dafd5eb01562060d860e267e309a1876e8ba5ce4d3303484b94129ab3c
|
|
|
|
do_configure() {
|
|
sed -i '/^CFLAGS/d' Makefile
|
|
if [ "$CROSS_BUILD" ]; then
|
|
sed -i "s/^CC.*/CC=${XBPS_CROSS_TRIPLET}-gcc/" Makefile
|
|
sed -i "s/^cc/${XBPS_CROSS_TRIPLET}-gcc/" configure
|
|
fi
|
|
./configure ${configure_args} --libs="-lgif"
|
|
}
|
|
|
|
do_install() {
|
|
vbin fbv
|
|
vman fbv.1
|
|
}
|