void-packages/srcpkgs/winusb/template
Đoàn Trần Công Danh 04b9978a29 srcpkgs/w*: convert patches to -Np1
* wine 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

27 lines
996 B
Bash

# Template file for 'winusb'
pkgname=winusb
version=1.0.11
revision=10
archs="i686* x86_64*"
build_style=gnu-configure
configure_args="--with-wx-config=wx-config-gtk3"
hostmakedepends="pkg-config"
makedepends="wxWidgets-gtk3-devel ntfs-3g libparted-devel
desktop-file-utils hicolor-icon-theme"
short_desc="Simple tool to create your own usb stick windows installer"
depends="desktop-file-utils hicolor-icon-theme parted ntfs-3g"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://en.congelli.eu/prog_info_winusb.html"
distfiles="http://ponce.cc/slackware/sources/repo/${pkgname}-${version}.tar.gz"
checksum=7bd8d2e63651134bd4173dcf358708fb9e6de1677c088e67d45995a1d5066bc9
case "${XBPS_TARGET_MACHINE}" in
x86_64*) depends+=" grub-x86_64-efi"; makedepends+=" grub-x86_64-efi" ;;
i686*) depends+=" grub-i386-efi"; makedepends+=" grub-i386-efi" ;;
esac
post_configure() {
sed -i Makefile src/Makefile \
-e"s;^\(CXXFLAGS *=\)\(.*\);\1 ${CXXFLAGS} \2;"
}