diff options
author | begin-theadventure | 2024-02-29 05:43:43 +0100 |
---|---|---|
committer | begin-theadventure | 2024-02-29 05:43:43 +0100 |
commit | ede11fc09790d7b296157864dc3e3bb7a76f89a2 (patch) | |
tree | 0b0eb21ccc81683fc6d88d6fa9f18b7ee132f20f | |
download | aur-ede11fc09790d7b296157864dc3e3bb7a76f89a2.tar.gz |
Initial commit: 2.0.0-alpha.1
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 50 |
2 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8c766bed3248 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = harmonyvpktool + pkgdesc = An all new Titanfall VPK unpacker. Over 2x faster than the most popular alternative! (ALPHA pre-release) + pkgver = 2.0.0.alpha.1 + pkgrel = 1 + url = https://github.com/harmonytf/HarmonyVPKTool + arch = x86_64 + license = GPL3 + makedepends = cargo + makedepends = git + makedepends = yarn + depends = webkit2gtk + source = git+https://github.com/harmonytf/HarmonyVPKTool.git#tag=2.0.0-alpha.1 + sha256sums = SKIP + +pkgname = harmonyvpktool diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..15236e5f2523 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: begin-theadventure <begin-thecontact.ncncb at dralias dot com> + +pkgname=harmonyvpktool +pkgdesc="An all new Titanfall VPK unpacker. Over 2x faster than the most popular alternative! (ALPHA pre-release)" +pkgver=2.0.0.alpha.1 +pkgrel=1 +url="https://github.com/harmonytf/HarmonyVPKTool" +license=('GPL3') +arch=('x86_64') +depends=('webkit2gtk') +makedepends=('cargo' 'git' 'yarn') +source=("git+$url.git#tag=2.0.0-alpha.1") +sha256sums=('SKIP') + +prepare() { +# Create a shortcut + echo -e "[Desktop Entry]\n\ +Categories=\n\ +Comment=Harmony VPK Tool\n\ +Exec=$pkgname\n\ +Icon=$pkgname\n\ +Name=Harmony VPK Tool\n\ +Terminal=false\n\ +Type=Application" > $pkgname.desktop + +# Install dependencies + export CARGO_HOME="$srcdir/CARGO_HOME" + cd HarmonyVPKTool + yarn +} + +build() { + export CARGO_HOME="$srcdir/CARGO_HOME" + export RUSTUP_TOOLCHAIN=stable + cd HarmonyVPKTool + yarn tauri build -b none +} + +package() { + install -Dm644 $pkgname.desktop -t "$pkgdir/usr/share/applications" + cd HarmonyVPKTool + install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname" + cd src-tauri + install -Dm644 icons/32x32.png "$pkgdir/usr/share/icons/hicolor/32x32/apps/$pkgname.png" + install -Dm644 icons/64x64.png "$pkgdir/usr/share/icons/hicolor/64x64/apps/$pkgname.png" + install -Dm644 icons/128x128.png "$pkgdir/usr/share/icons/hicolor/128x128/apps/$pkgname.png" + install -Dm644 icons/512x512.png "$pkgdir/usr/share/icons/hicolor/512x512/apps/$pkgname.png" + install -Dm644 icons/128x128@2x.png "$pkgdir/usr/share/icons/hicolor/128x128@2x/apps/$pkgname.png" + install -Dm755 target/release/harmony-vpk-tool "$pkgdir/usr/bin/$pkgname" +} |