# SliTaz package receipt. PACKAGE="openjpeg2" VERSION="2.5.0" CATEGORY="development" SHORT_DESC="Open-source C-Library for JPEG 2000 (ver. 2.x)." MAINTAINER="al.bobylev@gmail.com" LICENSE="BSD" WEB_SITE="https://www.openjpeg.org/" REPOLOGY="openjpeg" SOURCE="openjpeg" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://github.com/uclouvain/$SOURCE/archive/v$VERSION.tar.gz" DEPENDS="glibc-base tiff zlib" BUILD_DEPENDS="cmake tiff-dev" current_version() { wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { mkdir _build && cd _build && cmake .. \ -D CMAKE_INSTALL_PREFIX=/usr && make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cook_copy_folders bin cook_copy_files *.so* }