* 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 ```
28 lines
853 B
Bash
28 lines
853 B
Bash
# Template file for 'fbxkb'
|
|
pkgname=fbxkb
|
|
version=0.6
|
|
revision=2
|
|
build_style=configure
|
|
hostmakedepends="pkg-config"
|
|
makedepends="xorg-server-devel gtk+-devel"
|
|
short_desc="Lightweight X keyboard layout indicator, uses GTK+2"
|
|
maintainer="Pavel Kiselev <kispash@yandex.ru>"
|
|
license="MIT"
|
|
homepage="http://fbxkb.sourceforge.net/"
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tgz"
|
|
checksum="fcbaf4ed9a70f58ea1316b19da74e2ca8b3fb0e2de5a73c849317589ce840ef2"
|
|
|
|
pre_build() {
|
|
# Substitute compiler,
|
|
# Substitute CFLAGS (original options are subset of void's options),
|
|
# Put LDFLAGS at the end of command (enables PIE)
|
|
sed -i Makefile* \
|
|
-e "s;^CC.*=.*$;CC = ${CC};" \
|
|
-e "s;^CFLAGS.*=.*$;CFLAGS = ${CFLAGS};" \
|
|
-e "s;^\(.*\).(LDFLAGS)\(.*\)$;\1\2 ${LDFLAGS};"
|
|
}
|
|
|
|
do_install() {
|
|
make PREFIX="${DESTDIR}/usr" install
|
|
vlicense COPYING
|
|
}
|