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 ```
28 lines
722 B
Bash
28 lines
722 B
Bash
# Template file for 'faad2'
|
|
pkgname=faad2
|
|
version=2.10.0
|
|
revision=1
|
|
wrksrc="faad2-${version//./_}"
|
|
build_style=gnu-configure
|
|
hostmakedepends="autoconf automake libtool"
|
|
short_desc="AAC decoding library"
|
|
maintainer="Nathan <ndowens@artixlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://www.audiocoding.com/"
|
|
distfiles="https://github.com/knik0/faad2/archive/${version//./_}.tar.gz"
|
|
checksum=0c6d9636c96f95c7d736f097d418829ced8ec6dbd899cc6cc82b728480a84bfb
|
|
|
|
pre_configure() {
|
|
autoreconf -vfi
|
|
}
|
|
|
|
faad2-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|