wok view openjpeg2/receipt @ rev 25600

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 15:14:43 2023 +0000 (10 months ago)
parents f4bdbf65d59d
children 98eb7c7288b5
line source
1 # SliTaz package receipt.
3 PACKAGE="openjpeg2"
4 VERSION="2.5.0"
5 CATEGORY="development"
6 SHORT_DESC="Open-source C-Library for JPEG 2000 (ver. 2.x)."
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="BSD"
9 WEB_SITE="https://www.openjpeg.org/"
10 REPOLOGY="openjpeg"
12 SOURCE="openjpeg"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WGET_URL="https://github.com/uclouvain/$SOURCE/archive/v$VERSION.tar.gz"
16 DEPENDS="glibc-base tiff zlib"
17 BUILD_DEPENDS="cmake tiff-dev"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
23 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 mkdir _build &&
30 cd _build &&
31 cmake .. \
32 -D CMAKE_INSTALL_PREFIX=/usr &&
33 make &&
34 make install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 cook_copy_folders bin
41 cook_copy_files *.so*
42 }