wok view imlib2/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 8b04d03f832f
children dd7962f7e6b2
line source
1 # SliTaz package receipt.
3 PACKAGE="imlib2"
4 VERSION="1.6.1"
5 CATEGORY="graphics"
6 SHORT_DESC="Imlib graphic library."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL LGPL2"
9 WEB_SITE="https://sourceforge.net/projects/enlightenment/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/enlightenment/$TARBALL"
14 DEPENDS="bzlib freetype giflib jpeg libid3tag libpng tiff \
15 xorg-libICE xorg-libSM xorg-libX11 xorg-libXau \
16 xorg-libXdmcp xorg-libXext xorg-libXpm"
17 BUILD_DEPENDS="bzip2-dev freetype-dev gcc83 giflib-dev jpeg-dev \
18 libid3tag-dev libpng-dev pkg-config tiff-dev \
19 util-linux-uuid-dev xorg-libXpm-dev xorg-xextproto \
20 zlib-dev"
22 HOST_ARCH="i486 arm"
23 # ARM: jpeg-dev must be installed in build chroot and libjpeg.la must
24 # be modified manually
26 # What is the latest version available today?
27 current_version()
28 {
29 wget -O - https://sourceforge.net/projects/enlightenment/files/imlib2-src/ 2>/dev/null | \
30 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
31 sed '/scope="row/!d;s|.*/imlib2-src/||;s|/.*||;q'
32 }
34 # Rules to configure and make the package.
35 compile_rules()
36 {
37 ./configure \
38 --prefix=/usr \
39 --infodir=/usr/share/info \
40 --mandir=/usr/share/man \
41 --with-x \
42 $CONFIGURE_ARGS &&
43 make -j 1 &&
44 make install
46 sed -i 's| @my_libs@||' $install/usr/bin/imlib2-config
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/usr/bin
53 mkdir -p $fs/usr/lib/imlib2/filters
54 mkdir -p $fs/usr/lib/imlib2/loaders
56 cp -a $install/usr/lib/*.so* $fs/usr/lib
57 cp -a $install/usr/lib/imlib2/filters/*.so* \
58 $fs/usr/lib/imlib2/filters
59 cp -a $install/usr/lib/imlib2/loaders/*.so* \
60 $fs/usr/lib/imlib2/loaders
61 cp -a $install/usr/bin/imlib2_* $fs/usr/bin
62 }