# SliTaz package receipt. PACKAGE="podofo" VERSION="0.9.7" CATEGORY="office" SHORT_DESC="PDF library." MAINTAINER="pankso@slitaz.org" LICENSE="GPL2" WEB_SITE="https://sourceforge.net/projects/podofo/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" DEPENDS="fontconfig freetype gcc-lib-base jpeg libcrypto libpng tiff zlib" BUILD_DEPENDS="cmake fontconfig-dev freetype-dev jpeg-dev \ libcrypto-dev libpng-dev tiff-dev zlib-dev" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/$PACKAGE/files/$PACKAGE 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q" } # Rules to configure and make the package. compile_rules() { mkdir _build cd _build cmake .. \ -D CMAKE_INSTALL_PREFIX=/usr \ -D CMAKE_BUILD_TYPE=RELEASE \ -D FREETYPE_INCLUDE_DIR=/usr/include/freetype2 \ -D PODOFO_HAVE_LUA=FALSE \ -D PODOFO_BUILD_STATIC:BOOL=TRUE \ -D PODOFO_BUILD_SHARED:BOOL=TRUE && make && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cook_copy_folders bin cook_copy_files *.so* }