wok annotate amsn/receipt @ rev 24888
grub2: avoid grub-mkimage error: decompressor is too big
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 02 17:25:58 2022 +0100 (2022-04-02) |
parents | 5f6c5106b1f5 |
children | c5245e11296b |
rev | line source |
---|---|
erjo@1863 | 1 # SliTaz package receipt. |
erjo@1863 | 2 |
erjo@1863 | 3 PACKAGE="amsn" |
slaxemulator@13100 | 4 VERSION="0.98.9" |
taziden@1986 | 5 CATEGORY="network" |
Hans-G?nter@24344 | 6 TAGS="chat messenger im" |
erjo@1863 | 7 SHORT_DESC="Alvaro's Messenger" |
erjo@1863 | 8 MAINTAINER="erjo@slitaz.org" |
pascal@15201 | 9 LICENSE="GPL2" |
al@14789 | 10 WEB_SITE="http://amsn-project.net/" |
Hans-G?nter@24344 | 11 |
erjo@5702 | 12 TARBALL="$PACKAGE-$VERSION-src.tar.gz" |
slaxemulator@11040 | 13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
erjo@1863 | 14 |
Hans-G?nter@24344 | 15 DEPENDS="glib jpeg libpng libv4l tk tls xorg-libICE xorg-libSM xorg-libX11 |
Hans-G?nter@24344 | 16 xorg-libXau xorg-libXdmcp xorg-libXss zlib" |
Hans-G?nter@24344 | 17 BUILD_DEPENDS="findutils glib-dev jpeg-dev libpng-dev libv4l-dev tcl-dev |
Hans-G?nter@24344 | 18 tk-dev tls xorg-libICE-dev xorg-libSM-dev xorg-libX11-dev |
Hans-G?nter@24344 | 19 xorg-libXau-dev xorg-libXdmcp-dev xorg-libXss-dev zlib-dev" |
slaxemulator@13100 | 20 |
pascal@24340 | 21 # What is the latest version available today? |
pascal@24340 | 22 current_version() |
pascal@24340 | 23 { |
pascal@24340 | 24 wget -O - https://sourceforge.net/projects/amsn/files/amsn/ 2>/dev/null | \ |
pascal@24340 | 25 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24340 | 26 sed '/scope="row/!d;s|.*/amsn/||;s|/.*||;q' |
pascal@24340 | 27 } |
pascal@24340 | 28 |
erjo@1863 | 29 # Rules to configure and make the package. |
erjo@1863 | 30 compile_rules() |
erjo@1863 | 31 { |
pascal@20212 | 32 sed -i 's|uname -m|echo i486|' Makefile* |
Hans-G?nter@24344 | 33 # Does not compile with this modification since 2022-01-31 |
Hans-G?nter@24344 | 34 # Does it work properly without? |
Hans-G?nter@24344 | 35 # patch -Np0 -i $stuff/$PACKAGE-v4l2.patch |
slaxemulator@13122 | 36 patch -Np0 -i $stuff/$PACKAGE-0.98.9-no-rebuild-on-install.patch |
Hans-G?nter@24344 | 37 ./configure \ |
Hans-G?nter@24344 | 38 --prefix=/usr \ |
Hans-G?nter@24344 | 39 --with-tcl=/usr/lib \ |
Hans-G?nter@24344 | 40 $CONFIGURE_ARGS && |
Hans-G?nter@24344 | 41 make && |
Hans-G?nter@24344 | 42 make install DESTDIR=$DESTDIR |
erjo@1863 | 43 } |
erjo@1863 | 44 |
erjo@1863 | 45 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@1863 | 46 genpkg_rules() |
erjo@1863 | 47 { |
erjo@1863 | 48 mkdir -p $fs/usr |
Hans-G?nter@24344 | 49 |
Hans-G?nter@24344 | 50 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@24344 | 51 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@24344 | 52 cp -a $install/usr/share $fs/usr |
Hans-G?nter@24344 | 53 |
Hans-G?nter@24344 | 54 # fix permissions |
Hans-G?nter@24344 | 55 for ext in png xml css |
Hans-G?nter@24344 | 56 do |
al@14789 | 57 find $fs -type f -name '*.'$ext -exec chmod a-x \{\} \; |
Hans-G?nter@24344 | 58 done |
erjo@1863 | 59 } |