diff --git a/packagelist b/packagelist index fd57102eb6..efa3964be9 100644 --- a/packagelist +++ b/packagelist @@ -487,6 +487,7 @@ upscayl-app uwufetch vega-strike-engine-git vega-strike-git +ventoy-bin veracrypt-deb viper4linux virtualbox-deb diff --git a/packages/ventoy-bin/.SRCINFO b/packages/ventoy-bin/.SRCINFO new file mode 100644 index 0000000000..9a3094668e --- /dev/null +++ b/packages/ventoy-bin/.SRCINFO @@ -0,0 +1,35 @@ +pkgname = ventoy-bin +gives = ventoy +pkgver = 1.0.97 +pkgdesc = A new bootable USB solution +url = http://www.ventoy.net +arch = amd64 +source = https://github.com/ventoy/Ventoy/releases/download/v1.0.97/ventoy-1.0.97-linux.tar.gz +source = https://aur.archlinux.org/cgit/aur.git/plain/sanitize.patch?h=ventoy-bin +source = https://aur.archlinux.org/cgit/aur.git/plain/ventoy?h=ventoy-bin +source = https://aur.archlinux.org/cgit/aur.git/plain/ventoy-extend-persistent?h=ventoy-bin +source = https://aur.archlinux.org/cgit/aur.git/plain/ventoygui?h=ventoy-bin +source = https://aur.archlinux.org/cgit/aur.git/plain/ventoy-persistent?h=ventoy-bin +source = https://aur.archlinux.org/cgit/aur.git/plain/ventoyplugson?h=ventoy-bin +source = https://aur.archlinux.org/cgit/aur.git/plain/ventoy.desktop?h=ventoy-bin +source = https://aur.archlinux.org/cgit/aur.git/plain/ventoyweb?h=ventoy-bin +depends = bash +depends = util-linux +depends = xz-utils +depends = dosfstools +optdepends = libgtk-3-dev: GTK3 GUI +optdepends = qtbase-5-dev: Qt5 GUI +optdepends = polkit: run GUI from application menu +conflicts = ventoy +provides = ventoy +license = GPL-3.0-or-later +maintainer = xdavius +sha256sums = 1368a9082c9db25958e5407ef4984322d90d3bb00905337d4bd41678e06c1150 +sha256sums = SKIP +sha256sums = SKIP +sha256sums = SKIP +sha256sums = SKIP +sha256sums = SKIP +sha256sums = SKIP +sha256sums = SKIP +sha256sums = SKIP diff --git a/packages/ventoy-bin/ventoy-bin.pacscript b/packages/ventoy-bin/ventoy-bin.pacscript new file mode 100644 index 0000000000..5424fd0844 --- /dev/null +++ b/packages/ventoy-bin/ventoy-bin.pacscript @@ -0,0 +1,85 @@ +pkgname="ventoy-bin" +gives="ventoy" +pkgver="1.0.97" +pkgdesc="A new bootable USB solution" +maintainer="xdavius " +arch=('amd64') +url="http://www.ventoy.net" +license=('GPL-3.0-or-later') +depends=('bash' 'util-linux' 'xz-utils' 'dosfstools') +optdepends=('libgtk-3-dev: GTK3 GUI' + 'qtbase-5-dev: Qt5 GUI' + 'polkit: run GUI from application menu') +provides=("${pkgname%-bin}") +conflicts=("${pkgname%-bin}") +source=("https://github.com/ventoy/Ventoy/releases/download/v${pkgver}/${pkgname%-bin}-${pkgver}-linux.tar.gz" + "https://aur.archlinux.org/cgit/aur.git/plain/sanitize.patch?h=ventoy-bin" + "https://aur.archlinux.org/cgit/aur.git/plain/ventoy?h=ventoy-bin" + "https://aur.archlinux.org/cgit/aur.git/plain/ventoy-extend-persistent?h=ventoy-bin" + "https://aur.archlinux.org/cgit/aur.git/plain/ventoygui?h=ventoy-bin" + "https://aur.archlinux.org/cgit/aur.git/plain/ventoy-persistent?h=ventoy-bin" + "https://aur.archlinux.org/cgit/aur.git/plain/ventoyplugson?h=ventoy-bin" + "https://aur.archlinux.org/cgit/aur.git/plain/ventoy.desktop?h=ventoy-bin" + "https://aur.archlinux.org/cgit/aur.git/plain/ventoyweb?h=ventoy-bin") +sha256sums=('1368a9082c9db25958e5407ef4984322d90d3bb00905337d4bd41678e06c1150' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP') + +prepare() { + cd "${_archive}" + # Decompress tools + pushd tool/"x86_64" + for file in ./*.xz; do + xzcat "${file}" >"${file%.xz}" + chmod +x "${file%.xz}" + done + + # Cleanup .xz crap + rm -fv ./*.xz + popd + + # Apply sanitize patch + patch --verbose -p0 <"${srcdir}/sanitize.patch" + + # Log location + sed -i 's|log\.txt|/var/log/ventoy.log|g' WebUI/static/js/languages.js tool/languages.json + + # Non-POSIX compliant scripts + sed -i 's|bin/sh|usr/bin/env bash|g' tool/{ventoy_lib.sh,VentoyWorker.sh} + + # Clean up unused binaries + # Preserving mkexfatfs and mount.exfat-fuse because exfatprogs is incompatible + for binary in xzcat hexdump; do + rm -fv tool/"x86_64"/"${binary}" + done +} + +package() { + cd "${_archive}" + install -Dm644 -vt "${pkgdir}/opt/${pkgname%-bin}/boot/" boot/* + install -Dm644 -vt "${pkgdir}/opt/${pkgname%-bin}/${pkgname%-bin}/" "${pkgname%-bin}"/* + install -Dm755 -vt "${pkgdir}/opt/${pkgname%-bin}/tool/" tool/*.{cer,glade,json,sh,xz} + install -Dm755 -vt "${pkgdir}/opt/${pkgname%-bin}/tool/x86_64/" tool/"x86_64"/* + install -Dm755 -vt "${pkgdir}/opt/${pkgname%-bin}/" ./*.sh + cp --no-preserve=o -avt "${pkgdir}/opt/${pkgname%-bin}/" plugin WebUI + + install -Dm755 "VentoyGUI.x86_64" -vt "${pkgdir}/opt/${pkgname%-bin}" + install -Dm644 WebUI/static/img/VentoyLogo.png -v "${pkgdir}/usr/share/pixmaps/${pkgname%-bin}.png" + install -Dm644 "${srcdir}/${pkgname%-bin}.desktop" -vt "${pkgdir}/usr/share/applications" + + # Link system binaries + for binary in xzcat hexdump; do + ln -svf /usr/bin/"${binary}" "${pkgdir}/opt/${pkgname%-bin}/tool/x86_64/" + done + + install -Dm755 "${srcdir}/${pkgname%-bin}"{,gui,web,plugson,-{,extend-}persistent} -vt "${pkgdir}"/usr/bin/ + + # Remove Gtk 2 files + rm "${pkgdir}/opt/${pkgname%-bin}/tool/x86_64/Ventoy2Disk.gtk2" +}