From 96ab6d165d02bef9debbdc4cbecf44105898a0b5 Mon Sep 17 00:00:00 2001 From: Linus K Date: Mon, 22 Aug 2022 17:14:43 +0200 Subject: [PATCH] rmfm: Add path fix as mentioned in #619 (#620) * Add path fix as mentioned in #619 * Fix patch problems and bump version --- package/rmfm/package | 19 ++++++++++++++++--- package/rmfm/path_fix.patch | 9 +++++++++ 2 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 package/rmfm/path_fix.patch diff --git a/package/rmfm/package b/package/rmfm/package index a1b6a101f..1a27a2abb 100644 --- a/package/rmfm/package +++ b/package/rmfm/package @@ -5,15 +5,28 @@ pkgnames=(rmfm) pkgdesc="Bare-bones file manager using Node.js and sas" url="https://codeberg.org/sun/rmFM" -pkgver=1.4.0-1 +pkgver=1.4.0-2 timestamp=2022-08-19T11:20:10+02:00 section=utils maintainer="Sunny " license=MIT installdepends=(node simple) -source=(https://codeberg.org/sun/rmFM/archive/1.4.0.zip) -sha256sums=(28ce80c67fecc370d11f3fe2069742c2789b388a9426fff49d269d7900ae3dc9) +source=( + https://codeberg.org/sun/rmFM/archive/1.4.0.zip + path_fix.patch +) +sha256sums=( + 28ce80c67fecc370d11f3fe2069742c2789b388a9426fff49d269d7900ae3dc9 + SKIP +) + +prepare() { + # Assume node to be in /opt/bin and add that directory + # to the path of the app to allow finding simple + # This is a temporary fix for not working in remux + patch -d "$srcdir" < "$srcdir"/path_fix.patch +} package() { install -D -m 755 "$srcdir"/rmfm "$pkgdir"/opt/bin/rmfm diff --git a/package/rmfm/path_fix.patch b/package/rmfm/path_fix.patch new file mode 100644 index 000000000..a2cf4aef2 --- /dev/null +++ b/package/rmfm/path_fix.patch @@ -0,0 +1,9 @@ +diff --git a/rmfm b/rmfm +index 4571db9..172eedf 100755 +--- a/rmfm ++++ b/rmfm +@@ -1,2 +1,3 @@ +-#!/usr/bin/env node ++#!/opt/bin/node ++process.env.PATH += ":/opt/bin" +