termux-packages icon indicating copy to clipboard operation
termux-packages copied to clipboard

add package jdupes

Open Efreak opened this issue 2 years ago • 3 comments

jdupes is like fdupes, but better.

Hardlink support is disabled, since Android disallows creation of hardlinks.

jdupes has no dependencies and takes a single command to install, and builds/works fine inside termux. make CMAKE_EXTRA=-DNO_HARDLINKS PREFIX=$PREFIX install

While it duplicates functionality from fdupes, the binary and manpage are 172kb combined; strip the binary to remove 100kb.

Efreak avatar Jun 07 '22 03:06 Efreak

Bleh. I thought make would be run automatically? Or is that only if there's a configure script?

Efreak avatar Jun 07 '22 03:06 Efreak

It needs TERMUX_PKG_BUILD_IN_SRC=true, otherwise it looks for a non-existent Makefile in the build directory

Grimler91 avatar Jun 07 '22 07:06 Grimler91

This issue/PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 22 '22 16:07 stale[bot]

Looks like abandoned. @Efreak Still work in progress?

xtkoba avatar Dec 21 '22 10:12 xtkoba

Abandoned, sorry. Should have closed myself. I'm currently using my own self-built version on my devices. (I thought I'd packaged it in my own termux repo, but apparently I forgot. Or simply didn't list it in the repo)

Efreak avatar Dec 21 '22 17:12 Efreak

I've updated jdupes on my tablet, it currently needs another library.

If anyone else wants it the following set of commands works to build it (I'm not packaging anymore, I'm just syncing my devices...)

git clone https://github.com/jbruchon/jdupes
git clone https://GitHub.com/jbruchon/libjodycode
cd libjodycode
make staticlib
cd ../jdupes
# jdupes doesn't use a configure script, doesn't build properly on Android... Binary needs patching
wget https://gist.github.com/Efreak/9e244392bbc472294b1bff314bd450cb/raw/75e7ed43866e66179472779a1350809d54fd5eb7/0001-add-alignment-fixer-step-and-align_fix.py.patch
git apply 0001-add-alignment-fixer-step-and-align_fix.py.patch
USE_NEARBY_JC=1 PREFIX=$HOME/.local make static install

Efreak avatar Apr 29 '23 20:04 Efreak