From c6b4eec3c262c3fa4349f87bcda28b1561e173cd Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sun, 15 Jun 2025 08:40:17 -0700 Subject: [PATCH] add: vpkedit (#1284) (#5435) * add: vpkedit * bump to 4.2.3 * clear cwd * maybe no libc moment? --------- (cherry picked from commit 7edd8cf3882d73f5d6f7f572fa9216b26d79c727) Signed-off-by: madomado Co-authored-by: madomado --- anda/apps/vpkedit/anda.hcl | 6 ++++ anda/apps/vpkedit/update.rhai | 1 + anda/apps/vpkedit/vpkedit.spec | 52 ++++++++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+) create mode 100644 anda/apps/vpkedit/anda.hcl create mode 100644 anda/apps/vpkedit/update.rhai create mode 100644 anda/apps/vpkedit/vpkedit.spec diff --git a/anda/apps/vpkedit/anda.hcl b/anda/apps/vpkedit/anda.hcl new file mode 100644 index 0000000000..5d7de00c43 --- /dev/null +++ b/anda/apps/vpkedit/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "vpkedit.spec" + } +} diff --git a/anda/apps/vpkedit/update.rhai b/anda/apps/vpkedit/update.rhai new file mode 100644 index 0000000000..5dd599ac04 --- /dev/null +++ b/anda/apps/vpkedit/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("craftablescience/VPKEdit")); diff --git a/anda/apps/vpkedit/vpkedit.spec b/anda/apps/vpkedit/vpkedit.spec new file mode 100644 index 0000000000..400bfb394a --- /dev/null +++ b/anda/apps/vpkedit/vpkedit.spec @@ -0,0 +1,52 @@ +Name: vpkedit +Version: 4.4.2 +Release: 1%?dist +Summary: A CLI/GUI tool to create, read, and write several pack file formats +License: MIT +URL: https://github.com/craftablescience/VPKEdit +Requires: qt6-qtbase hicolor-icon-theme +Suggests: qt6-qtwayland +Packager: madonuko +BuildRequires: cmake git-core gcc gcc-c++ binutils +BuildRequires: cmake(Qt6) +BuildRequires: cmake(Qt6Svg) +BuildRequires: cmake(Qt6Linguist) +BuildRequires: cmake(Qt6Charts) +BuildRequires: cmake(Qt6LinguistTools) +ExclusiveArch: x86_64 + +%description +VPKEdit is an open source MIT-licensed tool that can extract from, preview the +contents of and write to several pack file formats. It also supports creating +new VPKs. + + +%prep +%git_clone %url v%version + + +%build +%cmake -DCMAKE_INSTALL_PREFIX=%_libdir/%name # -DVPKEDIT_BUILD_LIBC=ON +%cmake_build + + +%install +%cmake_install +pushd %buildroot%_libdir/%name +rm -rf libQt* +popd +ln -sf %_libdir/vpkedit/vpkedit %buildroot%_bindir/vpkedit +ln -sf %_libdir/vpkedit/vpkeditcli %buildroot%_bindir/vpkeditcli +sed -i 's@Exec=/opt/vpkedit/@Exec=@g' %buildroot%_datadir/applications/vpkedit.desktop + + +%files +%doc README.md CREDITS.md +%license LICENSE +%_bindir/vpkedit +%_bindir/vpkeditcli +%_libdir/%name/ +%_datadir/applications/vpkedit.desktop +%_iconsdir/hicolor/128x128/mimetypes/application-x-vpkedit.png +%_datadir/mime/packages/vpkedit.xml +%_datadir/pixmaps/vpkedit.png