Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added gzrt recipe #51859

Merged
merged 20 commits into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions recipes/gzrt/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/bin/bash

# Exit on error
set -e

if [ -z "$PREFIX" ]; then
echo "PREFIX environment variable not set"
exit 1
fi

export CFLAGS="$CFLAGS -I$PREFIX/include"
export LDFLAGS="$LDFLAGS -L$PREFIX/lib"
mazzalab marked this conversation as resolved.
Show resolved Hide resolved

# Clean any previous builds
make clean || true

if ! make; then
echo "Build failed"
exit 1
fi

if [ ! -f gzrecover ]; then
echo "Build did not produce gzrecover binary"
exit 1
fi
mazzalab marked this conversation as resolved.
Show resolved Hide resolved

chmod 755 gzrecover

if ! mkdir -p "$PREFIX/bin"; then
echo "Failed to create bin directory"
exit 1
fi

# Remove existing installation if present
rm -f "$PREFIX/bin/gzrecover"
mazzalab marked this conversation as resolved.
Show resolved Hide resolved

if ! cp gzrecover "$PREFIX/bin/"; then
echo "Failed to install gzrecover"
exit 1
fi
45 changes: 45 additions & 0 deletions recipes/gzrt/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{% set version = "0.8" %} # latest release on 2013-10-03
{% set sha256 = "b0b7dc53dadd8309ad9f43d6d6be7ac502c68ef854f1f9a15bd7f543e4571fee" %}

package:
name: gzrt
version: {{ version }}

source:
url: https://www.urbanophile.com/arenn/hacking/gzrt/gzrt-{{ version }}.tar.gz
sha256: {{ sha256 }}
# git_url: https://github.com/arenn/gzrt.git

mazzalab marked this conversation as resolved.
Show resolved Hide resolved
build:
number: 0

requirements:
build:
mazzalab marked this conversation as resolved.
Show resolved Hide resolved
- make
- zlib
bgruening marked this conversation as resolved.
Show resolved Hide resolved
host:
- zlib
mazzalab marked this conversation as resolved.
Show resolved Hide resolved
run:
- zlib
mazzalab marked this conversation as resolved.
Show resolved Hide resolved

extra:
channels:
- conda-forge
- defaults
recipe-maintainers:
- mazzalab
mazzalab marked this conversation as resolved.
Show resolved Hide resolved

test:
commands:
- gzrecover -h
mazzalab marked this conversation as resolved.
Show resolved Hide resolved

about:
home: https://www.urbanophile.com/arenn/hacking/gzrt
summary: "Unofficial build of the gzip Recovery Toolkit aka gzrecover"
license: GPLv2
mazzalab marked this conversation as resolved.
Show resolved Hide resolved
license_family: GPL
license_file: LICENSE
description: |
gzrecover is a program that will attempt to extract any readable data
out of a gzip file that has been corrupted.
dev_url: https://github.com/arenn/gzrt