wok-current view dcmtk/receipt @ rev 24439

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 13 18:01:32 2022 +0000 (2022-02-13)
parents a78610b2eb47
children ad9008f821da
line source
1 # SliTaz package receipt.
3 PACKAGE="dcmtk"
4 VERSION="3.6.0"
5 CATEGORY="misc"
6 SHORT_DESC="The DICOM Toolkit."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="other"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://dicom.offis.de/dcmtk"
11 WGET_URL="ftp://dicom.offis.de/pub/dicom/offis/software/$PACKAGE/$PACKAGE${VERSION//./}/$TARBALL"
13 DEPENDS="libxml2 tiff libpng libwrap"
14 BUILD_DEPENDS="libxml2-dev tiff-dev libpng-dev zlib-dev libwrap-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://github.com/DCMTK/dcmtk/tags 2>/dev/null | \
20 sed '/archive.*tar/!d;/\+_/d;s|.*/[A-Z_]*\(.*\).[t_].*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure --prefix=/usr \
27 --sysconfdir=/etc/dcmtk \
28 --mandir=/usr/share/man \
29 $CONFIGURE_ARGS &&
30 make -j 1 &&
31 make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 cp -a $install/* $fs/
38 }