wok-current view imagination/receipt @ rev 24412
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 09 21:05:34 2022 +0000 (2022-02-09) |
parents | 17e313b5b9c1 |
children | 7dd01dedad38 |
line source
1 # SliTaz package receipt.
3 PACKAGE="imagination"
4 VERSION="1.0"
5 CATEGORY="graphics"
6 SHORT_DESC="lightweight and simple GTK+ DVD slideshow maker"
7 MAINTAINER="jozee@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://imagination.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 TAGS="slideshow photo"
14 DEPENDS="gtk+ ffmpeg"
15 BUILD_DEPENDS="intltool ffmpeg gtk+-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/imagination/files/ 2>/dev/null | \
21 sed '/scope="row/!d;/tar/!d;s|.*/imagination-||;s|.tar.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src
28 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lgmodule-2.0"
29 ./configure --prefix=/usr $CONFIGURE_ARGS &&
30 make &&
31 make DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/lib/$PACKAGE $fs/usr/share/pixmaps
39 cp -a $install/usr/bin $fs/usr
40 cp -a $install/usr/lib/$PACKAGE/*.so $fs/usr/lib/$PACKAGE
41 cp -a $install/usr/share/$PACKAGE $fs/usr/share
42 cp -a $install/usr/share/icons/hicolor/16x16/apps/* $fs/usr/share/pixmaps
44 }