be5369a0cb
* 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 ```
36 lines
954 B
Bash
36 lines
954 B
Bash
# Template file for 'freetype'
|
|
pkgname=freetype
|
|
version=2.10.4
|
|
revision=2
|
|
build_style=gnu-configure
|
|
configure_args="--enable-freetype-config"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="bzip2-devel libpng-devel"
|
|
short_desc="Font rendering engine and library API"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later, FTL"
|
|
homepage="https://www.freetype.org/"
|
|
distfiles="${NONGNU_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
|
|
checksum=86a854d8905b19698bbc8f23b860bc104246ce4854dcea8e3b0fb21284f75784
|
|
|
|
post_patch() {
|
|
vsed -i -e "s/%PKG_CONFIG%/pkg-config/" builds/unix/freetype-config.in
|
|
}
|
|
|
|
post_install() {
|
|
vlicense docs/LICENSE.TXT
|
|
vlicense docs/FTL.TXT
|
|
}
|
|
|
|
freetype-devel_package() {
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
for f in bin include share; do
|
|
vmove usr/${f}
|
|
done
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|