wok-current annotate lensfun/receipt @ rev 25109
Up perl-date-manip (6.88)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 25 09:21:55 2022 +0000 (2022-06-25) |
parents | 65d7d867e0c1 |
children |
rev | line source |
---|---|
slaxemulator@9587 | 1 # SliTaz package receipt. |
slaxemulator@9587 | 2 |
slaxemulator@9587 | 3 PACKAGE="lensfun" |
Hans-G?nter@24710 | 4 VERSION="0.3.3" |
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@24710 | 9 WEB_SITE="https://lensfun.github.io/" |
Hans-G?nter@21101 | 10 |
Hans-G?nter@21101 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@24710 | 12 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/refs/tags/v$VERSION.tar.gz" |
slaxemulator@9587 | 13 |
pascal@15379 | 14 DEPENDS="glib" |
Hans-G?nter@24710 | 15 BUILD_DEPENDS="cmake glib-dev libpng" |
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@24710 | 28 mkdir _build && |
Hans-G?nter@24710 | 29 cd _build && |
Hans-G?nter@21101 | 30 cmake .. \ |
Hans-G?nter@21101 | 31 -DCMAKE_INSTALL_PREFIX=/usr && |
Hans-G?nter@24710 | 32 make all && |
Hans-G?nter@24710 | 33 make install INSTALL_PREFIX="$DESTDIR" |
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 { |
Hans-G?nter@24710 | 39 mkdir -p $fs/usr/lib |
Hans-G?nter@24710 | 40 mkdir -p $fs/usr/share |
Hans-G?nter@21101 | 41 |
Hans-G?nter@21101 | 42 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@21101 | 43 cp -a $install/usr/share/lensfun $fs/usr/share |
slaxemulator@9587 | 44 } |