```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 ```
18 lines
578 B
Bash
18 lines
578 B
Bash
# Template file for 'cclive'
|
|
pkgname=cclive
|
|
version=0.9.3
|
|
revision=5
|
|
build_style=gnu-configure
|
|
hostmakedepends="pkg-config"
|
|
makedepends="boost-devel pcre-devel libcurl-devel libquvi-devel glibmm-devel"
|
|
short_desc="Commandline downloader for popular video websites"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="AGPL-3.0-or-later"
|
|
homepage="http://cclive.sourceforge.net/"
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
|
|
checksum=2edeaf5d76455723577e0b593f0322a97f1e0c8b0cffcc70eca8b5d17374a495
|
|
CPPFLAGS="-P"
|
|
|
|
post_install() {
|
|
vlicense COPYING
|
|
}
|