summaryrefslogtreecommitdiff
path: root/rusty-path-of-building
diff options
context:
space:
mode:
authormoxie <moxie.git@posteo.net>2026-02-02 16:57:44 +0000
committermoxie <moxie.git@posteo.net>2026-02-02 16:57:44 +0000
commitc923ab512290ff77436fbccb19a6a6ebbccc9476 (patch)
tree183d0d0f9e472633ab3ecfb66d27131d942c34b9 /rusty-path-of-building
init
Diffstat (limited to 'rusty-path-of-building')
-rw-r--r--rusty-path-of-building/LICENSE12
l---------rusty-path-of-building/LICENSES/0BSD.txt1
-rw-r--r--rusty-path-of-building/PKGBUILD59
-rw-r--r--rusty-path-of-building/REUSE.toml22
-rw-r--r--rusty-path-of-building/rusty-path-of-building-1.desktop11
-rw-r--r--rusty-path-of-building/rusty-path-of-building-2.desktop11
6 files changed, 116 insertions, 0 deletions
diff --git a/rusty-path-of-building/LICENSE b/rusty-path-of-building/LICENSE
new file mode 100644
index 0000000..b87c5e4
--- /dev/null
+++ b/rusty-path-of-building/LICENSE
@@ -0,0 +1,12 @@
+Copyright Arch Linux Contributors
+
+Permission to use, copy, modify, and/or distribute this software for
+any purpose with or without fee is hereby granted.
+
+THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL
+WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
+OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE
+FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY
+DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
+AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
+OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/rusty-path-of-building/LICENSES/0BSD.txt b/rusty-path-of-building/LICENSES/0BSD.txt
new file mode 120000
index 0000000..ea5b606
--- /dev/null
+++ b/rusty-path-of-building/LICENSES/0BSD.txt
@@ -0,0 +1 @@
+../LICENSE \ No newline at end of file
diff --git a/rusty-path-of-building/PKGBUILD b/rusty-path-of-building/PKGBUILD
new file mode 100644
index 0000000..b1bd29b
--- /dev/null
+++ b/rusty-path-of-building/PKGBUILD
@@ -0,0 +1,59 @@
+# Maintainer: meehl
+
+pkgname='rusty-path-of-building'
+pkgver=0.2.10
+pkgrel=2
+pkgdesc="An offline build planner for Path of Exile 1 and 2 using the cross-platform 'rusty-path-of-building' runtime"
+url='https://github.com/meehl/rusty-path-of-building'
+license=('MIT')
+makedepends=('cargo' 'git' 'zlib')
+depends=('desktop-file-utils' 'luajit' 'lua51-curl' 'lua51-luautf8' 'lua51-socket')
+arch=('x86_64')
+provides=("rusty-path-of-building")
+# LTO causes problems with 'ring' (dependency of ureq)
+options=("!debug" "!lto")
+source=(
+ "${pkgname}-${pkgver}.tar.gz::https://github.com/meehl/rusty-path-of-building/archive/v${pkgver}.tar.gz"
+ "rusty-path-of-building-1.desktop"
+ "rusty-path-of-building-2.desktop"
+)
+b2sums=('f4986cf18d0e16fb3ca3c7fa5a87889b9185984c832ff6e8eea5e07e71225556cb2dc740e1de7680742c76156945d19ef517ac099d4cae3cd2e609057c6b45e5'
+ 'aee0f8d3e6171cbe4a331af35125948f2a8398ec9d59d899f58133355cae67ac4fd0b87f38b2efe1f8cf23870bbbb2ac534a6992b5ab31189a9ed42a9d637db6'
+ 'c2af601318bda69c8c7eba72b37cb6c1a63e052ee50c9e62fe257e2e820952ea92475ce25a573970d0ea3d80348dee7b9e9460563d4e4a1e02064e175a1d0968')
+
+prepare() {
+ cd "${pkgname}-${pkgver}"
+ export RUSTUP_TOOLCHAIN=stable
+ cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
+}
+
+build() {
+ cd "${pkgname}-${pkgver}"
+
+ # build lzip.so
+ (cd "lua/libs/lzip" && make LUA_IMPL=luajit)
+
+ # build runtime binary
+ export RUSTUP_TOOLCHAIN=stable
+ export CARGO_TARGET_DIR=target
+ export RUSTFLAGS="-C target-cpu=native"
+ cargo build --frozen --release
+}
+
+package() {
+ cd "${pkgname}-${pkgver}"
+
+ # install lzip.so
+ (cd "lua/libs/lzip" && make DESTDIR="${pkgdir}" install)
+
+ # install executable and license
+ install -Dm0755 -t "${pkgdir}/usr/bin/" "target/release/${pkgname}"
+ install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+ # install desktop entries
+ install -Dm644 "${srcdir}/rusty-path-of-building-1.desktop" "${pkgdir}/usr/share/applications/rusty-path-of-building-1.desktop"
+ install -Dm644 "${srcdir}/rusty-path-of-building-2.desktop" "${pkgdir}/usr/share/applications/rusty-path-of-building-2.desktop"
+
+ # install icon
+ install -Dm644 "assets/icon.png" "${pkgdir}/usr/share/icons/hicolor/256x256/apps/rusty-path-of-building.png"
+}
diff --git a/rusty-path-of-building/REUSE.toml b/rusty-path-of-building/REUSE.toml
new file mode 100644
index 0000000..8501755
--- /dev/null
+++ b/rusty-path-of-building/REUSE.toml
@@ -0,0 +1,22 @@
+version = 1
+
+[[annotations]]
+path = [
+ "PKGBUILD",
+ "README.md",
+ "keys/**",
+ ".SRCINFO",
+ ".nvchecker.toml",
+ "*.install",
+ "*.sysusers",
+ "*.tmpfiles",
+ "*.logrotate",
+ "*.pam",
+ "*.service",
+ "*.socket",
+ "*.timer",
+ "*.desktop",
+ "*.hook",
+]
+SPDX-FileCopyrightText = "Arch Linux contributors"
+SPDX-License-Identifier = "0BSD"
diff --git a/rusty-path-of-building/rusty-path-of-building-1.desktop b/rusty-path-of-building/rusty-path-of-building-1.desktop
new file mode 100644
index 0000000..5a20c22
--- /dev/null
+++ b/rusty-path-of-building/rusty-path-of-building-1.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Name=Path of Building 1 (Rusty)
+Comment=An offline build planner for Path of Exile 1
+Exec=rusty-path-of-building poe1 %u
+Terminal=false
+Type=Application
+Categories=Game
+Keywords=poe;pob;poe1;pob1;path;exile;
+MimeType=x-scheme-handler/pob;
+Icon=rusty-path-of-building
+StartupWMClass=rusty-path-of-building-1
diff --git a/rusty-path-of-building/rusty-path-of-building-2.desktop b/rusty-path-of-building/rusty-path-of-building-2.desktop
new file mode 100644
index 0000000..e954195
--- /dev/null
+++ b/rusty-path-of-building/rusty-path-of-building-2.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Name=Path of Building 2 (Rusty)
+Comment=An offline build planner for Path of Exile 2
+Exec=rusty-path-of-building poe2 %u
+Terminal=false
+Type=Application
+Categories=Game
+Keywords=poe;pob;poe2;pob2;path;exile;
+MimeType=x-scheme-handler/pob2;
+Icon=rusty-path-of-building
+StartupWMClass=rusty-path-of-building-2