void-packages/srcpkgs/deadbeef-fb/template
Đoàn Trần Công Danh b6bcd8cd34 srcpkgs/d*: convert patches to -Np1
* daemontools and dmraid 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
```
2021-06-20 13:17:29 +07:00

23 lines
888 B
Bash

# Template file for 'deadbeef-fb'
pkgname=deadbeef-fb
version=0.92.20180507
revision=1
_commit=355e6142606270e7ae0fd68d8fcdb3f1ada295ca
wrksrc="${pkgname}-${_commit}-${_commit}"
build_style=gnu-configure
configure_args="$(vopt_if gtk3 --disable-gtk2 --disable-gtk3) --disable-static"
hostmakedepends="autogen automake libtool pkg-config"
makedepends="deadbeef-devel $(vopt_if gtk3 gtk+3-devel gtk+-devel)"
depends="deadbeef"
short_desc="Filebrowser plugin for the DeaDBeeF audio player"
maintainer="newbluemoon <blaumolch@mailbox.org>"
license="GPL-2.0-or-later"
homepage="https://gitlab.com/zykure/deadbeef-fb"
distfiles="https://gitlab.com/zykure/${pkgname}/repository/${_commit}/archive.tar.bz2>${pkgname}-${version}.tar.bz2"
checksum=19a0c2ea3743926e71f9b20f616ff5bdbfd9839a553b33cc192dfed7bed3cb1d
build_options="gtk3"
build_options_default="gtk3"
pre_configure() {
./autogen.sh
}