void-packages/srcpkgs/libmygui/template
Đoàn Trần Công Danh 861ac185a6 srcpkgs/l*: 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

30 lines
800 B
Bash

# Template file for 'mygui'
pkgname=libmygui
version=3.4.0
revision=1
wrksrc="mygui-MyGUI${version}"
build_style=cmake
configure_args="-DMYGUI_BUILD_DEMOS=OFF -DMYGUI_RENDERSYSTEM=1 -DMYGUI_BUILD_TOOLS=OFF"
hostmakedepends="doxygen pkg-config"
makedepends="libX11-devel ois-devel boost-devel freetype-devel"
short_desc="Fast, flexible and simple GUI"
maintainer="John <me@johnnynator.dev>"
license="MIT"
homepage="http://mygui.info"
distfiles="https://github.com/MyGUI/mygui/archive/MyGUI${version}.tar.gz"
checksum=d1d5f294670ae71f7200ed4b30859018281d8cfd45d6a38d18b97a4aba604c42
libmygui-devel_package() {
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove "usr/lib/*.a"
}
}
post_install() {
vlicense COPYING.MIT
}