Name ncompress
Description original Lempel-Ziv compress/uncompress programs
Version 5.0-3
Package Base
Homepage https://github.com/vapier/ncompress
Maintainers ['Kenneth J. Pronovici <pronovic@debian.org>']
Contributors []
Distro-repo https://salsa.debian.org/debian/ncompress
Sources ['https://sources.debian.org/data/main/n/ncompress/5.0-3/debian/watch', 'https://sources.debian.org/src/ncompress/5.0-3/debian/patches/fix-softlinks.patch', 'https://sources.debian.org/src/ncompress/5.0-3/debian/patches/gcc-15.patch', 'https://sources.debian.org/src/ncompress/5.0-3/debian/patches/manpage-cleanup.patch', 'https://sources.debian.org/src/ncompress/5.0-3/debian/patches/old-style-functions.patch', 'https://sources.debian.org/src/ncompress/5.0-3/debian/patches/remove-zcat.patch', 'https://sources.debian.org/src/ncompress/5.0-3/debian/patches/series', 'https://sources.debian.org/src/ncompress/5.0-3/debian/patches/uncompress-real.patch']
Dependencies ['libc6']
Optional-Dependencies []
Build-Dependencies ['debhelper-compat']
Provides []
Builddate
Architecture amd64
Distro-Version trixie
Licenses []
Hash adb5d47ffa08c95e0d08f2b8b69b85e969710341827dc0a1c085fec1ee80235f
#!/usr/bin/make -f

# Set to enable verbose output from debhelper
#export DH_VERBOSE=1

# Export standard build flags like CPFLAGS, LDFLAGS, etc.
# Note that we're using "-include" to make this backport-friendly.
# The buildflags.mk script was introduced along with dpkg-dev 1.16.1.
DPKG_EXPORT_BUILDFLAGS=1
-include /usr/share/dpkg/buildflags.mk

# Set up the environment for cross-builds to work correctly.
# See: https://wiki.debian.org/CrossBuildPackagingGuidelines
# The buildtools.mk script was introduced along with dpkg-dev 1.19.0.
DPKG_EXPORT_BUILDTOOLS=1
-include /usr/share/dpkg/buildtools.mk

# Enable all hardening-related compiler options
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_installdocs:
	dh_installdocs Acknowleds README.md

# This takes the place of an upstream install process
override_dh_auto_install:
	install compress debian/ncompress/usr/bin
	ln -s compress debian/ncompress/usr/bin/uncompress.real
	install -m 644 compress.1 debian/ncompress/usr/share/man/man1
	ln -s compress.1 debian/ncompress/usr/share/man/man1/uncompress.real.1

# This takes the place of an upstream build process
override_dh_auto_build:
	$(MAKE) compress

# This takes the place of an upstream clean process
override_dh_auto_clean:
	$(MAKE) cleanup
	rm -f Makefile

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	$(MAKE) check          # upstream tests added with v4.2.4.5
	sh debian/smoketest    # portions of the Debian autopkgtest suite
endif