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

20 lines
568 B
Bash

# Template file for 'dust3d'
pkgname=dust3d
version=1.0.0b21
revision=1
_version="${version/b/-beta.}"
wrksrc="$pkgname-${_version}"
build_style=qmake
hostmakedepends="pkg-config qt5-host-tools qt5-qmake"
makedepends="qt5-devel cgal-devel"
short_desc="3D Modeling software"
maintainer="Andrew Benson <abenson+void@gmail.com>"
license="MIT"
homepage="https://dust3d.org/"
distfiles="https://github.com/huxingyi/dust3d/archive/${_version}.tar.gz"
checksum=7c29e1153e6b568459ab8a8fadbec3398a43b5d60f295018c3f0cdcad2d2b4b1
do_install() {
vbin dust3d
vlicense LICENSE
}