wok-current view gphotofs/receipt @ rev 25672
patch tazpkg, upgrade core pkgs first
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Sun Mar 03 17:58:42 2024 +0000 (5 months ago) |
parents | 932cd974e081 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="gphotofs"
4 VERSION="0.5.0"
5 CATEGORY="base-system"
6 SHORT_DESC="a FUSE filesystem module to mount your camera as a filesystem"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-${VERSION%.*}.tar.bz2"
10 WEB_SITE="http://www.gphoto.org/proj/gphotofs/"
11 WGET_URL="$SF_MIRROR/project/gphoto/$PACKAGE/$VERSION/$TARBALL"
13 DEPENDS="fuse2 libgphoto2 glib"
14 BUILD_DEPENDS="fuse2-dev libgphoto2-dev glib-dev libtool"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://sourceforge.net/projects/gphoto/files/gphotofs/ 2>/dev/null | \
20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
21 sed '/scope="row/!d;s|.*/gphotofs/||;s|/.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure --prefix=/usr $CONFIGURE_ARGS 2>&1 | grep -v POTFILES
28 make &&
29 make DESTDIR=$DESTDIR install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 cp -a $install/usr $fs
36 mkdir -p $install/usr/share/doc
37 cp $src/README $install/usr/share/doc
38 }