# SliTaz package receipt. PACKAGE="dcmtk" VERSION="3.6.0" CATEGORY="misc" SHORT_DESC="The DICOM Toolkit." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="other" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="https://web.archive.org/web/20221014093352/https://dicom.offis.de/dcmtk" WGET_URL="ftp://dicom.offis.de/pub/dicom/offis/software/$PACKAGE/$PACKAGE${VERSION//./}/$TARBALL" DEPENDS="libxml2 tiff libpng libwrap" BUILD_DEPENDS="libxml2-dev tiff-dev libpng-dev zlib-dev libwrap-dev" # What is the latest version available today? current_version() { wget -O - https://github.com/DCMTK/dcmtk/tags 2>/dev/null | \ sed '/archive.*tar/!d;/\+_/d;s|.*/[A-Z_-]*\(.*\).[t_].*|\1|;q' } # Rules to configure and make the package. compile_rules() { ./configure --prefix=/usr \ --sysconfdir=/etc/dcmtk \ --mandir=/usr/share/man \ $CONFIGURE_ARGS && make -j 1 && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cp -a $install/* $fs/ }