c987560802
```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 ```
40 lines
1 KiB
Bash
40 lines
1 KiB
Bash
# Template file for 'cdparanoia'
|
|
pkgname=cdparanoia
|
|
version=10.2
|
|
revision=14
|
|
wrksrc="${pkgname}-III-${version}"
|
|
build_style=gnu-configure
|
|
hostmakedepends="libtool automake"
|
|
short_desc="CDDA reading utility with extra data verification features"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://www.xiph.org/paranoia/"
|
|
distfiles="http://downloads.xiph.org/releases/$pkgname/$pkgname-III-$version.src.tgz"
|
|
checksum=005db45ef4ee017f5c32ec124f913a0546e77014266c6a1c50df902a55fe64df
|
|
|
|
CFLAGS="-Du_int16_t=uint16_t -Du_int32_t=uint32_t"
|
|
disable_parallel_build=yes
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
|
|
libcdparanoia_package() {
|
|
replaces="${sourcepkg}<10.2_10"
|
|
short_desc+=" - runtime library"
|
|
license="LGPL-2.1-only"
|
|
pkg_install() {
|
|
vmove usr/lib/*.so.*
|
|
}
|
|
}
|
|
libcdparanoia-devel_package() {
|
|
replaces="${sourcepkg}-devel<10.2_10"
|
|
depends="lib${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
license="LGPL-2.1-only"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|