# SliTaz package receipt. PACKAGE="lensfun" VERSION="0.3.3" CATEGORY="multimedia" SHORT_DESC="Database of photographic lenses and a library that allows advanced access to the database." MAINTAINER="slaxemulator@gmail.com" LICENSE="LGPL3 GPL3" WEB_SITE="https://lensfun.github.io/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/refs/tags/v$VERSION.tar.gz" DEPENDS="glib" BUILD_DEPENDS="cmake glib-dev libpng" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/lensfun/files/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/files/||;s|/.*||;q' } # Rules to configure and make the package. compile_rules() { mkdir _build && cd _build && cmake .. \ -DCMAKE_INSTALL_PREFIX=/usr && make all && make install INSTALL_PREFIX="$DESTDIR" } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib mkdir -p $fs/usr/share cp -a $install/usr/lib/*.so* $fs/usr/lib cp -a $install/usr/share/lensfun $fs/usr/share }