void-packages/srcpkgs/devil/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

30 lines
934 B
Bash

# Template file for 'devil'
pkgname=devil
version=1.8.0
revision=3
wrksrc="DevIL"
build_wrksrc="DevIL"
build_style=cmake
hostmakedepends="pkg-config"
makedepends="lcms-devel libpng-devel libmng-devel jasper-devel
glew-devel libfreeglut-devel libopenexr-devel SDL_image-devel"
short_desc="Developer's Image Library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1"
homepage="http://openil.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/openil/DevIL-${version}.tar.gz"
checksum=0075973ee7dd89f0507873e2580ac78336452d29d34a07134b208f44e2feb709
# The examples subpkg is gone
replaces="devil-examples<1.8.0"
devil-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmkdir usr/share/doc/devil
cp -aR ${wrksrc}/DevIL-docs/*pdf ${PKGDESTDIR}/usr/share/doc/devil
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}