Add par2 package (#501)
authorOliver Schmidhauser <oliver.schmidhauser@gmail.com>
Sat, 15 Oct 2016 22:08:07 +0000 (00:08 +0200)
committerFredrik Fornwall <fredrik@fornwall.net>
Sat, 15 Oct 2016 22:08:07 +0000 (00:08 +0200)
Parity Archives are very usefull for working with long term storage,
which may have degraded over time. It allows to restore the files, even
if chunks of it are corrupted. https://en.wikipedia.org/wiki/Parchive

I tested it by creating a par2 archive, corrupting the original data and
restoring it.

This program is named par2cmdline, but I named the package par2 because
that's what it is called in the Ubuntu Repo,

 Date:      Wed Oct 12 12:19:39 2016 +0200

packages/par2/build.sh [new file with mode: 0644]

diff --git a/packages/par2/build.sh b/packages/par2/build.sh
new file mode 100644 (file)
index 0000000..05f7b53
--- /dev/null
@@ -0,0 +1,13 @@
+TERMUX_PKG_HOMEPAGE=https://github.com/Parchive/par2cmdline
+TERMUX_PKG_DESCRIPTION="par2cmdline is a PAR 2.0 compatible file verification and repair tool."
+TERMUX_PKG_VERSION=0.6.13
+TERMUX_PKG_MAINTAINER="Oliver Schmidhauser @Neo-Oli"
+TERMUX_PKG_SRCURL=https://github.com/Parchive/par2cmdline/archive/v${TERMUX_PKG_VERSION}.tar.gz
+TERMUX_PKG_FOLDERNAME=par2cmdline-$TERMUX_PKG_VERSION
+TERMUX_PKG_BUILD_IN_SRC=yes
+
+termux_step_pre_configure() {
+       aclocal
+       automake --add-missing
+       autoconf
+}