Skip to content

Commit

Permalink
sabnzbd: update cross/par2cmdline-turbo
Browse files Browse the repository at this point in the history
- update cross/par2cmdline-turbo to v1.2.0 and optimize code
- fix of animetosho/par2cmdline-turbo#22 is included
- former post_install_target is obsolete
  • Loading branch information
hgy59 committed Jan 13, 2025
1 parent 9108893 commit f29708e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 30 deletions.
39 changes: 14 additions & 25 deletions cross/par2cmdline-turbo/Makefile
Original file line number Diff line number Diff line change
@@ -1,41 +1,30 @@
PKG_NAME = par2cmdline-turbo
PKG_VERS = 1.1.0
PKG_VERS = 1.2.0
PKG_EXT = tar.gz
PKG_GIT_HASH = e00677a8249f438f0f52b0270af9e8c7116eeac0
PKG_DIST_NAME = $(PKG_GIT_HASH).$(PKG_EXT)
PKG_DIST_NAME = v$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://github.com/animetosho/par2cmdline-turbo/archive
PKG_DIST_FILE = $(PKG_NAME)-git$(PKG_GIT_HASH).$(PKG_EXT)
PKG_DIR = $(PKG_NAME)-$(PKG_GIT_HASH)
PKG_DIST_FILE = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

DEPENDS =

# A compiler with support for C++11 language features is required.
UNSUPPORTED_ARCHS = $(ARMv5_ARCHS) $(OLD_PPC_ARCHS)

HOMEPAGE = https://github.com/animetosho/par2cmdline-turbo
COMMENT = This is a simple fork of par2cmdline which replaces core computation routines with ParPars processing backend, improving par2cmdlines performance on x86/ARM platforms. par2cmdline is a PAR 2.0 compatible file verification and repair tool.
LICENSE = GPL

# Ensure C++11 compatibility
UNSUPPORTED_ARCHS = $(ARMv5_ARCHS) $(OLD_PPC_ARCHS)
PRE_CONFIGURE_TARGET = par2cmdline-turbo_pre_configure

GNU_CONFIGURE = 1
ADDITIONAL_CFLAGS = -std=c11

PRE_CONFIGURE_TARGET = myPreConfigure
POST_INSTALL_TARGET = myPostInstall
ADDITIONAL_CPPFLAGS = -O2
# ignore some compiler warnings
ADDITIONAL_CPPFLAGS += -Wno-unused-variable -Wno-unused-function

include ../../mk/spksrc.cross-cc.mk

PAR2_TOOLS = par2create par2repair par2verify

.PHONY: myPreConfigure
myPreConfigure:
$(RUN) ./automake.sh

.PHONY: myPostInstall
myPostInstall:
(cd $(INSTALL_DIR)/$(INSTALL_PREFIX)/bin ; \
for tool in $(PAR2_TOOLS); \
do \
rm $${tool} ; \
ln -sf par2 $${tool} ; \
done \
)
.PHONY: par2cmdline-turbo_pre_configure
par2cmdline-turbo_pre_configure:
@$(RUN) ./automake.sh
6 changes: 3 additions & 3 deletions cross/par2cmdline-turbo/digests
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
par2cmdline-turbo-gite00677a8249f438f0f52b0270af9e8c7116eeac0.tar.gz SHA1 17187908f279068a5306b88b6adcb3ad63d83356
par2cmdline-turbo-gite00677a8249f438f0f52b0270af9e8c7116eeac0.tar.gz SHA256 bb0ad1baa2625a6bd61122e43e84a1aa62a6da8d6ddc4eb024adfe5c4bf7f81a
par2cmdline-turbo-gite00677a8249f438f0f52b0270af9e8c7116eeac0.tar.gz MD5 fee6b5fd2997095ad52c25f344062a7b
par2cmdline-turbo-1.2.0.tar.gz SHA1 07d2dd77d7a27504ee3118c8e90699d635cae211
par2cmdline-turbo-1.2.0.tar.gz SHA256 5d3911d1defaf2aa9d17f8b37325fa3152edce5814c5110647b2e5197706bfa4
par2cmdline-turbo-1.2.0.tar.gz MD5 01df3c7dd697f2e5f6c9a4b76e545f50
4 changes: 2 additions & 2 deletions spk/sabnzbd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ UNSUPPORTED_ARCHS = $(OLD_PPC_ARCHS)
# unrar not supported
UNSUPPORTED_ARCHS += $(ARMv5_ARCHS)

SPK_DEPENDS = "python311>=3.11.5-8"
SPK_DEPENDS = $(PYTHON_PACKAGE)

WHEELS = src/requirements-crossenv.txt src/requirements-pure.txt

Expand All @@ -23,7 +23,7 @@ DESCRIPTION_FRE = SABnzbd rend Usenet aussi simple et automatisé que possible.
DESCRIPTION_SPN = SABnzbd hace que Usenet sea lo más simple posible, automatizando todo lo que se puede. Todo lo que tienes que hacer es agregar un archivo .nzb. SABnzbd empieza desde ahí. Tus archivos serán automáticamente descargados, verificados, reparados, descomprimidos y archivados.
DISPLAY_NAME = SABnzbd
STARTABLE = yes
CHANGELOG = "1. Update SABnzbd to 4.4.1. <br/>2. Update 7za to v24.09. <br/>3. Update unrar to v7.1.2 (DSM 7 only)."
CHANGELOG = "1. Update SABnzbd to 4.4.1. <br/>2. Update 7za to v24.09. <br/>3. Update unrar to v7.1.2 (DSM 7 only). <br/>4. Update par2cmdline-turbo to v1.2.0."

HOMEPAGE = https://sabnzbd.org
LICENSE = GPL
Expand Down

0 comments on commit f29708e

Please sign in to comment.