void-packages/srcpkgs/afterstep/template
Đoàn Trần Công Danh ae69000001 srcpkgs/a*: convert patches to -Np1
* arduino and antiword 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

36 lines
972 B
Bash

# Template file for 'afterstep'
pkgname=afterstep
version=2.2.12
revision=2
wrksrc="${pkgname}-devel-${version}"
build_style=gnu-configure
configure_args="ac_cv_header_elf_h=no"
hostmakedepends="pkg-config automake libtool"
makedepends="fltk-devel gtk+-devel"
short_desc="Window Manager based on the look and feel of the NeXTStep interface"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="http://www.afterstep.org/"
distfiles="https://github.com/sashavasko/${pkgname}-devel/archive/${version}.tar.gz"
checksum=7a82d06a9ce432ef3b0856ff39f6da416aa8cbc249dbb2ff3c1cdcb02e2ca46d
pre_configure() {
autoreconf -fi libAfterBase
autoreconf -fi libAfterImage
}
post_install() {
vlicense COPYRIGHT
}
afterstep-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove "usr/bin/*-config"
vmove "usr/bin/*-libs"
vmove usr/include
vmove "usr/lib/*.a"
vmove usr/share/man/man3
}
}