103ab731ab
* runit 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 ```
46 lines
1.3 KiB
Bash
46 lines
1.3 KiB
Bash
# Template file for 'rtmpdump'
|
|
pkgname=rtmpdump
|
|
version=2.4.20161210
|
|
revision=9
|
|
_patchlevel=${version##*.}
|
|
create_wrksrc=yes
|
|
makedepends="zlib-devel $(vopt_if gnutls 'gnutls-devel' 'openssl-devel')"
|
|
short_desc="Toolkit for RTMP streams"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2, LGPL-2.1"
|
|
homepage="http://rtmpdump.mplayerhq.hu/"
|
|
distfiles="https://alpha.de.repo.voidlinux.org/distfiles/${pkgname}-${version%.*}_p${_patchlevel}.tar.gz"
|
|
checksum=d6da3b683f1045f02d94a81b0c583318dba021f69bdab970c5d5d73e8c38860f
|
|
|
|
CFLAGS="-Wno-unused-const-variable -Wno-unused-but-set-variable"
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) CFLAGS+=" -D__LINUX_NETFILTER_H"
|
|
esac
|
|
|
|
build_options="gnutls"
|
|
build_options_default="gnutls"
|
|
|
|
do_build() {
|
|
make CC="$CC" OPT="$CFLAGS" LDFLAGS="$LDFLAGS" "$(vopt_if gnutls 'CRYPTO=GNUTLS' 'CRYPTO=OPENSSL')" ${makejobs}
|
|
}
|
|
do_install() {
|
|
vmkdir usr/lib
|
|
make prefix=/usr sbindir=/usr/bin mandir=/usr/share/man DESTDIR=$DESTDIR install
|
|
}
|
|
|
|
librtmp_package() {
|
|
short_desc+=" - shared library"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
}
|
|
}
|
|
librtmp-devel_package() {
|
|
depends="${makedepends} librtmp>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|