# SliTaz package receipt. PACKAGE="amsn" VERSION="0.98.9" CATEGORY="network" TAGS="chat messenger im" SHORT_DESC="Alvaro's Messenger" MAINTAINER="erjo@slitaz.org" LICENSE="GPL2" WEB_SITE="https://web.archive.org/web/20221014232802/http://amsn-project.net/" TARBALL="$PACKAGE-$VERSION-src.tar.gz" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" DEPENDS="glib jpeg libpng libv4l tk tls xorg-libICE xorg-libSM xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXss zlib" BUILD_DEPENDS="findutils glib-dev jpeg-dev libpng-dev libv4l-dev tcl-dev tk-dev tls xorg-libICE-dev xorg-libSM-dev xorg-libX11-dev xorg-libXau-dev xorg-libXdmcp-dev xorg-libXss-dev zlib-dev" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/amsn/files/amsn/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/amsn/||;s|/.*||;q' } # Rules to configure and make the package. compile_rules() { sed -i 's|uname -m|echo i486|' Makefile* # Does not compile with this modification since 2022-01-31 # Does it work properly without? # patch -Np0 -i $stuff/$PACKAGE-v4l2.patch patch -Np0 -i $stuff/$PACKAGE-0.98.9-no-rebuild-on-install.patch ./configure \ --prefix=/usr \ --with-tcl=/usr/lib \ $CONFIGURE_ARGS && make && make install DESTDIR=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr cp -a $install/usr/bin $fs/usr cp -a $install/usr/lib $fs/usr cp -a $install/usr/share $fs/usr # fix permissions for ext in png xml css do find $fs -type f -name '*.'$ext -exec chmod a-x \{\} \; done }