wok-6.x view lensfun/receipt @ rev 24658

created recipes for libdbi and libdbi-dev
author Hans-G?nter Theisgen
date Fri Mar 11 09:23:49 2022 +0100 (2022-03-11)
parents a1e9a41ba028
children 59786a4f765e
line source
1 # SliTaz package receipt.
3 PACKAGE="lensfun"
4 VERSION="0.3.2"
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://sourceforge.net/projects/lensfun/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS="glib"
15 BUILD_DEPENDS="cmake glib-dev libpng python"
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 -j 1 all &&
33 make INSTALL_PREFIX="$DESTDIR" install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib $fs/usr/share
41 cp -a $install/usr/lib/*.so* $fs/usr/lib
42 cp -a $install/usr/share/lensfun $fs/usr/share
43 }