void-packages/srcpkgs/gamin/template
Đoàn Trần Công Danh 7fc9190f0e srcpkgs/g*: convert patches to -Np1
* gcc is kept at -Np0, because of void-cross

```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

34 lines
943 B
Bash

# Template file for 'gamin'
pkgname=gamin
version=0.1.10
revision=2
build_style=gnu-configure
configure_args="--disable-static"
# no -python subpackage: failed to cross build for armv7hf
hostmakedepends="automake libtool pkg-config"
makedepends="glib-devel"
short_desc="Library providing the FAM File Alteration Monitor API"
maintainer="yopito <pierre.bourgin@free.fr>"
license="GPL-2.0-or-later"
homepage="http://www.gnome.org/~veillard/gamin/"
distfiles="$GNOME_SITE/gamin/0.1/gamin-${version}.tar.bz2"
checksum=a59948b20ce2f14136c013f155abb8c8d51db2ea167c063ff33461e453fec10a
pre_configure() {
autoreconf -fi
}
post_install() {
# "--disable-static" configure arg has no effect
rm ${DESTDIR}/usr/lib/libgamin_shared.a
}
gamin-devel_package() {
short_desc+=" - development"
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so
vmove usr/lib/pkgconfig/gamin.pc
}
}