From 26d8078eb2cd43e7e0c0e9d3cd383cfc54e3cd7e Mon Sep 17 00:00:00 2001 From: Ranme Fritzvilliams Date: Wed, 24 Nov 2021 00:47:52 +0300 Subject: [PATCH] WoeUSB: update to 5.2.4. This commit with heavy changes is made to update the package from version 3.1.1 to 5.2.4. Due to the absence of updates for a long time the following changes are present: - the repository has been moved to another organization. - gui is forked into a separate repository and left unmaintained. - GNU Auto*hell is no more. - more dependences: wimlib and dosfstools. - WoeUSB-cli has lost its purpose (since gui is gone, cli only is left). --- srcpkgs/WoeUSB/template | 40 +++++++++++++++++----------------------- 1 file changed, 17 insertions(+), 23 deletions(-) diff --git a/srcpkgs/WoeUSB/template b/srcpkgs/WoeUSB/template index 4b8a4892dec5..a1af01a19a2c 100644 --- a/srcpkgs/WoeUSB/template +++ b/srcpkgs/WoeUSB/template @@ -1,34 +1,28 @@ # Template file for 'WoeUSB' pkgname=WoeUSB -version=3.3.1 -revision=3 -build_style=gnu-configure -configure_args="--with-wx-config=wx-config-gtk3" -hostmakedepends="automake gettext libtool" -makedepends="wxWidgets-gtk3-devel" -depends="WoeUSB-cli" +version=5.2.4 +revision=1 +depends="bash grub parted wget dosfstools ntfs-3g wimlib" short_desc="Create a Windows USB stick installer from a real Windows DVD or image" -maintainer="bra1nwave " +maintainer="Orphaned " license="GPL-3.0-or-later" -homepage="https://github.com/slacka/WoeUSB" -distfiles="https://github.com/slacka/WoeUSB/archive/v${version}.tar.gz" -checksum=0cab88a1113506f39d2f1c19532b2cd8d968c6a9f59129953c000e29e73f3d4f +homepage="https://github.com/WoeUSB/WoeUSB" +distfiles="https://github.com/WoeUSB/WoeUSB/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz" +checksum=8305296d49b7b58c200f9d373eac8dd494d03442737183749a0ee166403a7e68 -post_patch() { +do_patch() { vsed -i -e "s/@@WOEUSB_VERSION@@/$version/g" \ - configure.ac \ - src/woeusb src/woeusb.1 src/woeusbgui.1 + sbin/woeusb \ + share/man/man1/woeusb.1 } -pre_configure() { - autoreconf -fi +WoeUSB-cli_package() { + build_style=meta + short_desc+=" - dummy transitional package" + depends="WoeUSB" } -WoeUSB-cli_package() { - depends="bash grub ntfs-3g parted wget" - short_desc+=" - command line only" - pkg_install() { - vmove usr/bin/woeusb - vmove usr/share/man/man1/woeusb.1 - } +do_install() { + vbin sbin/woeusb + vman share/man/man1/woeusb.1 }