Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add: vpkedit #1284

Open
wants to merge 7 commits into
base: frawhide
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions anda/apps/vpkedit/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "vpkedit.spec"
}
}
1 change: 1 addition & 0 deletions anda/apps/vpkedit/update.rhai
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rpm.version(gh("craftablescience/VPKEdit"));
62 changes: 62 additions & 0 deletions anda/apps/vpkedit/vpkedit.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
Name: vpkedit
Version: 4.2.3
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
BuildRequires: cmake git-core gcc gcc-c++ binutils
BuildRequires: cmake(Qt6)
BuildRequires: cmake(Qt6LinguistTools)

%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.


%package -n libvpkeditc
Summary: A library to create, read, and write several pack file formats

%description -n libvpkeditc
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
rm -rf ./*
git clone %url . --depth 1 --recursive --branch v%version
git checkout v%version


%build
%cmake # -DVPKEDIT_BUILD_LIBC=ON
%cmake_build


%install
%cmake_install
ls %buildroot/usr/**
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
install -Dpm755 include/vpkeditc %buildroot%_includedir/vpkeditc


%files
%doc README.md
%license LICENSE
%_bindir/vpkedit
%_bindir/vpkeditcli
%_datadir/applications/vpkedit.desktop

%files -n libvpkeditc
%doc README.md
%license LICENSE
%_includedir/vpkeditc
%_libdir/libvpkeditc.so

%changelog
%autochangelog
Loading