wok-6.x annotate kompozer/receipt @ rev 24980
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun May 08 09:19:55 2022 +0000 (2022-05-08) |
parents | 3abeffdae80b |
children |
rev | line source |
---|---|
Hans-G?nter@24413 | 1 # SliTaz package receipt. |
Hans-G?nter@24413 | 2 |
Hans-G?nter@24413 | 3 PACKAGE="kompozer" |
Hans-G?nter@24413 | 4 VERSION="0.8b3" |
Hans-G?nter@24413 | 5 CATEGORY="network" |
Hans-G?nter@24413 | 6 SHORT_DESC="KompoZer is a complete web authoring system." |
Hans-G?nter@24413 | 7 MAINTAINER="maintainer@slitaz.org" |
pascal@24727 | 8 LICENSE="MPL1.1" |
Hans-G?nter@24413 | 9 WEB_SITE="http://kompozer.net" |
Hans-G?nter@24413 | 10 |
Hans-G?nter@24413 | 11 TARBALL="$PACKAGE-$VERSION-src.tar.bz2" |
Hans-G?nter@24413 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
Hans-G?nter@24413 | 13 |
Hans-G?nter@24413 | 14 DEPENDS="gtk+ libxml2" |
Hans-G?nter@24413 | 15 BUILD_DEPENDS="coreutils findutils gtk+-dev gtk-girepository libIDL |
Hans-G?nter@24413 | 16 libXaw3dXft-dev libxml2-dev nspr-dev pango-dev pkg-config |
pascal@24414 | 17 perl xorg-libXft-dev zip pangox-compat-dev" |
pascal@24414 | 18 |
pascal@24414 | 19 # What is the latest version available today? |
pascal@24414 | 20 current_version() |
pascal@24414 | 21 { |
pascal@24414 | 22 wget -O - https://sourceforge.net/projects/kompozer/files/current/ 2>/dev/null | \ |
pascal@24414 | 23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24414 | 24 sed '/scope="row/!d;s|.*/current/||;s|/.*||;q' |
pascal@24414 | 25 } |
Hans-G?nter@24413 | 26 |
Hans-G?nter@24413 | 27 # Rules to configure and make the package. |
Hans-G?nter@24413 | 28 compile_rules() |
Hans-G?nter@24413 | 29 { |
pascal@24414 | 30 grep -l 'uname -m' * | xargs sed -i 's|uname -m|echo i686|' |
Hans-G?nter@24413 | 31 echo ac_add_options --enable-application=composer > .mozconfig |
Hans-G?nter@24413 | 32 cp -a security/coreconf/Linux2.6.mk security/coreconf/Linux3.16.mk |
Hans-G?nter@24413 | 33 |
Hans-G?nter@24413 | 34 { |
Hans-G?nter@24413 | 35 ./configure \ |
Hans-G?nter@24413 | 36 --with-system-nspr \ |
Hans-G?nter@24413 | 37 --prefix=/usr \ |
Hans-G?nter@24413 | 38 --disable-glibtest \ |
Hans-G?nter@24413 | 39 --disable-libIDLtest \ |
Hans-G?nter@24413 | 40 --disable-updater \ |
Hans-G?nter@24413 | 41 --disable-tests \ |
Hans-G?nter@24413 | 42 --enable-system-cairo \ |
Hans-G?nter@24413 | 43 --enable-installer && |
Hans-G?nter@24413 | 44 make -j 1 && |
Hans-G?nter@24413 | 45 make install DESTDIR=$DESTDIR |
Hans-G?nter@24413 | 46 } 2>&1 | sed "s|build_number': No such|build_number': no such|" |
Hans-G?nter@24413 | 47 } |
Hans-G?nter@24413 | 48 |
Hans-G?nter@24413 | 49 # Rules to gen a SliTaz package suitable for Tazpkg. |
Hans-G?nter@24413 | 50 genpkg_rules() |
Hans-G?nter@24413 | 51 { |
Hans-G?nter@24413 | 52 mkdir -p $fs/usr/lib |
Hans-G?nter@24413 | 53 |
Hans-G?nter@24413 | 54 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@24413 | 55 cp -a $install/usr/lib/kompozer $fs/usr/lib |
Hans-G?nter@24413 | 56 } |