wok-current annotate lensfun/receipt @ rev 24411
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 09 17:57:59 2022 +0000 (2022-02-09) |
parents | a1e9a41ba028 |
children | 59786a4f765e |
rev | line source |
---|---|
slaxemulator@9587 | 1 # SliTaz package receipt. |
slaxemulator@9587 | 2 |
slaxemulator@9587 | 3 PACKAGE="lensfun" |
Hans-G?nter@21101 | 4 VERSION="0.3.2" |
slaxemulator@9587 | 5 CATEGORY="multimedia" |
Hans-G?nter@21101 | 6 SHORT_DESC="Database of photographic lenses and a library that allows advanced access to the database." |
slaxemulator@9587 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@15379 | 8 LICENSE="LGPL3 GPL3" |
Hans-G?nter@21101 | 9 WEB_SITE="https://sourceforge.net/projects/lensfun/" |
Hans-G?nter@21101 | 10 |
Hans-G?nter@21101 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@21101 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
slaxemulator@9587 | 13 |
pascal@15379 | 14 DEPENDS="glib" |
Hans-G?nter@21101 | 15 BUILD_DEPENDS="cmake glib-dev libpng python" |
pascal@15379 | 16 |
pascal@24411 | 17 # What is the latest version available today? |
pascal@24411 | 18 current_version() |
pascal@24411 | 19 { |
pascal@24411 | 20 wget -O - https://sourceforge.net/projects/lensfun/files/ 2>/dev/null | \ |
pascal@24411 | 21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24411 | 22 sed '/scope="row/!d;s|.*/files/||;s|/.*||;q' |
pascal@24411 | 23 } |
pascal@24411 | 24 |
slaxemulator@9587 | 25 # Rules to configure and make the package. |
slaxemulator@9587 | 26 compile_rules() |
slaxemulator@9587 | 27 { |
Hans-G?nter@21101 | 28 mkdir build |
Hans-G?nter@21101 | 29 cd build |
Hans-G?nter@21101 | 30 cmake .. \ |
Hans-G?nter@21101 | 31 -DCMAKE_INSTALL_PREFIX=/usr && |
Hans-G?nter@21101 | 32 make -j 1 all && |
slaxemulator@9587 | 33 make INSTALL_PREFIX="$DESTDIR" install |
slaxemulator@9587 | 34 } |
slaxemulator@9587 | 35 |
slaxemulator@9587 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@9587 | 37 genpkg_rules() |
slaxemulator@9587 | 38 { |
slaxemulator@9587 | 39 mkdir -p $fs/usr/lib $fs/usr/share |
Hans-G?nter@21101 | 40 |
Hans-G?nter@21101 | 41 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@21101 | 42 cp -a $install/usr/share/lensfun $fs/usr/share |
slaxemulator@9587 | 43 } |