void-packages/srcpkgs/WoeUSB/template

33 lines
904 B
Bash

# Template file for 'WoeUSB'
pkgname=WoeUSB
version=3.3.1
revision=4
build_style=gnu-configure
configure_args="--with-wx-config=wx-config-gtk3"
hostmakedepends="automake gettext libtool"
makedepends="wxWidgets-gtk3-devel"
depends="WoeUSB-cli"
short_desc="Create a Windows USB stick installer from a real Windows DVD or image"
maintainer="Orphaned <orphan@voidlinux.org>"
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
CXXFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
post_patch() {
vsed -i -e "s/@@WOEUSB_VERSION@@/$version/g" \
configure.ac \
src/woeusb src/woeusb.1 src/woeusbgui.1
}
pre_configure() {
autoreconf -fi
}
post_install() {
rm -f ${DESTDIR}/usr/bin/woeusb
rm -f ${DESTDIR}/usr/share/man/man1/woeusb.1
}