# cygport script for afflib NAME=afflib VERSION=3.7.20 RELEASE=1 SOURCE_DATE="2024-03-06 22:00:00 UTC" SUMMARY="Library and tools for the Advanced Forensic Format" DESCRIPTION="\ The Advanced Forensic Format (AFF) is a file format for storing computer forensic information. It supports metadata, compression, encryption and signing." LICENSE="BSD-4-clause" PKG_NAMES="afflib-tools libafflib0 libafflib-devel" afflib_tools_SUMMARY="${SUMMARY} (tools)" afflib_tools_DESCRIPTION="${DESCRIPTION} This package contains tools to examine, convert, compare, copy, encrypt, decrypt and sign AFF files." libafflib0_SUMMARY="${SUMMARY} (runtime)" libafflib0_DESCRIPTION="${DESCRIPTION} This package contains the runtime library for afflib." libafflib_devel_SUMMARY="${SUMMARY} (development)" libafflib_devel_DESCRIPTION="${DESCRIPTION} This package contains the development files for libafflib0." CATEGORY="Devel Libs Utils" afflib_tools_CATEGORY="Utils" libafflib0_CATEGORY="Libs" libafflib_devel_CATEGORY="Devel Libs" afflib_tools_REQUIRES="" # libafflib0 libexpat1 libgcc1 libreadline7 libssl3 libstdc++6 libafflib0_REQUIRES="" # libcurl4 libexpat1 libgcc1 libssl3 libstdc++6 zlib0 libafflib_devel_REQUIRES="" # libafflib0 libssl-devel pkg-config BUILD_REQUIRES=" binutils gcc-g++ gzip libcurl-devel libexpat-devel libreadline-devel libssl-devel zlib-devel " # make HOMEPAGE="https://github.com/sshock/AFFLIBv3" SRC_URI="https://codeload.github.com/sshock/AFFLIBv3/tar.gz/refs/tags/v${PV}#/${P}.tar.gz" SRC_DIR="AFFLIBv3-${PV}" afflib_tools_CONTENTS=" --exclude=usr/bin/cygafflib-0.dll usr/bin usr/share " libafflib0_CONTENTS=" usr/bin/cygafflib-0.dll " libafflib_devel_CONTENTS=" usr/include/afflib usr/lib " DIFF_EXCLUDES="lzma443" export SOURCE_DATE_EPOCH=$(date -d "$SOURCE_DATE" +%s) src_compile() { cd ${S} cygautoreconf cd ${B} cygconf --enable-shared --disable-static \ --enable-qemu --enable-s3 --enable-threading \ --with-curl --with-expat --with-gnu-ld \ --disable-fuse --disable-python # configure sets _FORTIFY_SOURCE=2 which would override level 3 # libtool requires '-no-undefined' cygmake CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \ LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-no-undefined" } src_install() { cd ${B} cyginstall cd ${S} dodoc doc/*.txt cd ${D} # affuse only prints that FUSE is not supported rm -v usr/bin/affuse.exe usr/share/man/man1/affuse.1 gzip -9nv usr/share/doc/${PN}/*.txt }