From f169726f19c2532079a44fb7380f5dc5aff76ed3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sun, 12 Apr 2020 13:26:04 +0700 Subject: [PATCH] WoeUSB: fix version, dependencies, split cli GUI version is not necessary in most case, and upstream recommend using cli tools instead. --- srcpkgs/WoeUSB-cli | 1 + srcpkgs/WoeUSB/template | 20 ++++++++++++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) create mode 120000 srcpkgs/WoeUSB-cli diff --git a/srcpkgs/WoeUSB-cli b/srcpkgs/WoeUSB-cli new file mode 120000 index 00000000000..69ca6ca2f77 --- /dev/null +++ b/srcpkgs/WoeUSB-cli @@ -0,0 +1 @@ +WoeUSB \ No newline at end of file diff --git a/srcpkgs/WoeUSB/template b/srcpkgs/WoeUSB/template index 0e324e2abc4..1bb0efa56ff 100644 --- a/srcpkgs/WoeUSB/template +++ b/srcpkgs/WoeUSB/template @@ -1,12 +1,12 @@ # Template file for 'WoeUSB' pkgname=WoeUSB version=3.3.1 -revision=1 +revision=2 build_style=gnu-configure configure_args="--with-wx-config=wx-config-gtk3" hostmakedepends="automake gettext libtool" makedepends="wxWidgets-gtk3-devel" -depends="grub ntfs-3g parted wget" +depends="WoeUSB-cli" short_desc="Create a Windows USB stick installer from a real Windows DVD or image" maintainer="bra1nwave " license="GPL-3.0-or-later" @@ -14,6 +14,22 @@ homepage="https://github.com/slacka/WoeUSB" distfiles="https://github.com/slacka/WoeUSB/archive/v${version}.tar.gz" checksum=0cab88a1113506f39d2f1c19532b2cd8d968c6a9f59129953c000e29e73f3d4f +post_patch() { + vsed -i -e "s/@@WOEUSB_VERSION@@/$version/g" \ + configure.ac \ + src/woeusb src/woeusb.1 src/woeusbgui.1 +} + pre_configure() { autoreconf -fi } + +WoeUSB-cli_package() { + archs=noarch + 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 + } +}