forked from th0ma7/spksrc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
synocli-file: add nnn file manager (SynoCommunity#5003)
* nnn: initial diyspk package - add nnn package to manually build in diyspk * add nnn to synocli-file
- Loading branch information
Showing
7 changed files
with
69 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
PKG_NAME = nnn | ||
PKG_VERS = 4.4 | ||
PKG_EXT = tar.gz | ||
PKG_DIST_NAME = $(PKG_NAME)-v$(PKG_VERS).$(PKG_EXT) | ||
PKG_DIST_SITE = https://github.com/jarun/nnn/releases/download/v$(PKG_VERS) | ||
PKG_DIR = $(PKG_NAME)-$(PKG_VERS) | ||
|
||
DEPENDS = cross/ncursesw cross/readline | ||
|
||
# compiler too old (-std=c11 required) | ||
UNSUPPORTED_ARCHS = $(OLD_PPC_ARCS) $(ARMv5_ARCHS) | ||
|
||
HOMEPAGE = https://github.com/jarun/nnn | ||
COMMENT = n³ The unorthodox terminal file manager. | ||
LICENSE = 2-clause BSD | ||
|
||
CONFIGURE_TARGET = nop | ||
INSTALL_TARGET = nnn_install | ||
|
||
include ../../mk/spksrc.cross-cc.mk | ||
|
||
.PHONY: nnn_install | ||
nnn_install: | ||
@$(RUN) $(MAKE) install DESTDIR=$(INSTALL_DIR) PREFIX=$(INSTALL_PREFIX) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
bin:bin/nnn | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
nnn-v4.4.tar.gz SHA1 5ff16a0513a3f1ad0000cf0d4fb8c5677b73629d | ||
nnn-v4.4.tar.gz SHA256 e04a3f0f0c2af1e18cb6f005d18267c7703644274d21bb93f03b30e4fd3d1653 | ||
nnn-v4.4.tar.gz MD5 3f5d7734648c9c0993131efe4158f1b8 |
17 changes: 17 additions & 0 deletions
17
cross/nnn/patches/DSM-6.1/001-avoid-file-offset-64-for-32-bit-archs-on-dsm6.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# older toolchains do not support _FILE_OFFSET_BITS=64 for 32-bit archs, | ||
# only DSM 7+ toolchains do. | ||
# | ||
# /sysroot/usr/include/fts.h:41:3: error: #error "<fts.h> cannot be used with -D_FILE_OFFSET_BITS==64" | ||
# | ||
--- src/nnn.c.orig 2021-11-23 13:03:45.000000000 +0000 | ||
+++ src/nnn.c 2021-12-16 19:45:28.030685890 +0000 | ||
@@ -33,9 +33,6 @@ | ||
#ifndef _GNU_SOURCE | ||
#define _GNU_SOURCE | ||
#endif | ||
-#if defined(__arm__) || defined(__i386__) | ||
-#define _FILE_OFFSET_BITS 64 /* Support large files on 32-bit */ | ||
-#endif | ||
#if defined(__linux__) | ||
#include <sys/inotify.h> | ||
#define LINUX_INOTIFY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
SPK_NAME = nnn | ||
SPK_VERS = 4.4 | ||
SPK_REV = 1 | ||
SPK_ICON = src/nnn.png | ||
|
||
DEPENDS = cross/nnn | ||
|
||
MAINTAINER = SynoCommunity | ||
DESCRIPTION = n³ The unorthodox terminal file manager. | ||
DISPLAY_NAME = n³ | ||
STARTABLE = no | ||
CHANGELOG = "Initial package release" | ||
|
||
HOMEPAGE = https://github.com/jarun/nnn | ||
LICENSE = 2-clause BSD | ||
|
||
SPK_COMMANDS = bin/nnn | ||
|
||
include ../../mk/spksrc.spk.mk |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters