wok-current view amsn/receipt @ rev 25687
Up expat CVE-2024-28757
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Mar 15 07:23:20 2024 +0000 (9 months ago) |
parents | 63f3c86a7f09 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="amsn"
4 VERSION="0.98.9"
5 CATEGORY="network"
6 TAGS="chat messenger im"
7 SHORT_DESC="Alvaro's Messenger"
8 MAINTAINER="erjo@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://web.archive.org/web/20221014232802/http://amsn-project.net/"
12 TARBALL="$PACKAGE-$VERSION-src.tar.gz"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 DEPENDS="glib jpeg libpng libv4l tk tls xorg-libICE xorg-libSM xorg-libX11
16 xorg-libXau xorg-libXdmcp xorg-libXss zlib"
17 BUILD_DEPENDS="findutils glib-dev jpeg-dev libpng-dev libv4l-dev tcl-dev
18 tk-dev tls xorg-libICE-dev xorg-libSM-dev xorg-libX11-dev
19 xorg-libXau-dev xorg-libXdmcp-dev xorg-libXss-dev zlib-dev"
21 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - https://sourceforge.net/projects/amsn/files/amsn/ 2>/dev/null | \
25 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
26 sed '/scope="row/!d;s|.*/amsn/||;s|/.*||;q'
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 sed -i 's|uname -m|echo i486|' Makefile*
33 # Does not compile with this modification since 2022-01-31
34 # Does it work properly without?
35 # patch -Np0 -i $stuff/$PACKAGE-v4l2.patch
36 patch -Np0 -i $stuff/$PACKAGE-0.98.9-no-rebuild-on-install.patch
37 ./configure \
38 --prefix=/usr \
39 --with-tcl=/usr/lib \
40 $CONFIGURE_ARGS &&
41 make &&
42 make install DESTDIR=$DESTDIR
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr
50 cp -a $install/usr/bin $fs/usr
51 cp -a $install/usr/lib $fs/usr
52 cp -a $install/usr/share $fs/usr
54 # fix permissions
55 for ext in png xml css
56 do
57 find $fs -type f -name '*.'$ext -exec chmod a-x \{\} \;
58 done
59 }