void-packages/srcpkgs/mate-utils/template
Đoàn Trần Công Danh 765e304c4b srcpkgs/m*: convert patches to -Np1
```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

27 lines
918 B
Bash

# Template file for 'mate-utils'
pkgname=mate-utils
version=1.24.0
revision=1
build_style=gnu-configure
configure_args="--disable-static --disable-schemas-compile"
hostmakedepends="automake libtool gettext-devel pkg-config which
intltool itstool glib-devel mate-common librsvg-utils inkscape
autoconf-archive"
makedepends="gtk+3-devel libSM-devel zlib-devel libcanberra-devel
libgtop-devel libmate-panel-devel udisks2-devel"
depends="desktop-file-utils"
short_desc="Common utilities for the MATE desktop"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://mate-desktop.org"
distfiles="https://pub.mate-desktop.org/releases/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=219673047fe2a14eb9c8bc23a5fb7c99d45e7acad4c05b4bf59a3d244cb026ac
pre_configure() {
NOCONFIGURE=1 ./autogen.sh
}
post_install() {
rm -r ${DESTDIR}/usr/include
rm -r ${DESTDIR}/usr/lib/pkgconfig
}