wok view lensfun/receipt @ rev 25524
created recipes for tree-sitter and tree-sitter-dev 0.20.7
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 24 17:21:52 2023 +0100 (21 months ago) |
parents | 65d7d867e0c1 |
children | 5db546345599 |
line source
1 # SliTaz package receipt.
3 PACKAGE="lensfun"
4 VERSION="0.3.3"
5 CATEGORY="multimedia"
6 SHORT_DESC="Database of photographic lenses and a library that allows advanced access to the database."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="LGPL3 GPL3"
9 WEB_SITE="https://lensfun.github.io/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/refs/tags/v$VERSION.tar.gz"
14 DEPENDS="glib"
15 BUILD_DEPENDS="cmake glib-dev libpng"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/lensfun/files/ 2>/dev/null | \
21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
22 sed '/scope="row/!d;s|.*/files/||;s|/.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 mkdir _build &&
29 cd _build &&
30 cmake .. \
31 -DCMAKE_INSTALL_PREFIX=/usr &&
32 make all &&
33 make install INSTALL_PREFIX="$DESTDIR"
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib
40 mkdir -p $fs/usr/share
42 cp -a $install/usr/lib/*.so* $fs/usr/lib
43 cp -a $install/usr/share/lensfun $fs/usr/share
44 }