765e304c4b
```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.2 KiB
Bash
40 lines
1.2 KiB
Bash
# Template file for 'minidlna'
|
|
pkgname=minidlna
|
|
version=1.3.0
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="
|
|
--sbindir=/usr/bin
|
|
--with-db-path=/var/db/minidlna
|
|
--with-os-url=http://www.voidlinux.org"
|
|
conf_files="/etc/minidlna.conf"
|
|
make_dirs="
|
|
/var/lib/minidlna 0750 minidlna minidlna
|
|
/var/log/minidlna 0750 minidlna minidlna"
|
|
hostmakedepends="pkg-config gettext"
|
|
makedepends="ffmpeg-devel libjpeg-turbo-devel sqlite-devel libexif-devel
|
|
libid3tag-devel libvorbis-devel libflac-devel"
|
|
short_desc="DLNA/UPnP-AV compliant media server"
|
|
maintainer="Duncaen <duncaen@voidlinux.org>"
|
|
license="GPL-2.0-only, BSD-3-Clause"
|
|
homepage="https://minidlna.sourceforge.net/"
|
|
changelog="https://sourceforge.net/projects/minidlna/files/minidlna/${version}/README/view"
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
|
|
checksum=47d9b06b4c48801a4c1112ec23d24782728b5495e95ec2195bbe5c81bc2d3c63
|
|
|
|
system_accounts="minidlna"
|
|
minidlna_homedir="/var/lib/minidlna"
|
|
|
|
CFLAGS="-fcommon"
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
|
makedepends+=" musl-legacy-compat"
|
|
fi
|
|
|
|
post_install() {
|
|
vlicense LICENCE.miniupnpd # This one is BSD. COPYING is GPL-2
|
|
vconf minidlna.conf
|
|
vman minidlna.conf.5
|
|
vman minidlnad.8
|
|
vsv minidlnad
|
|
}
|