# HG changeset patch # User Aleksej Bobylev # Date 1501694053 -10800 # Node ID 0f38eda21e70540102f857a1ed96fd21891e62d3 # Parent 2017cce9bab8a4ac1241e4619444f0cfa60250d7 Add LibreOffice (with langpacks); up compton, cookutils, cppunit. diff -r 2017cce9bab8 -r 0f38eda21e70 LibreOffice/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LibreOffice/receipt Wed Aug 02 20:14:13 2017 +0300 @@ -0,0 +1,159 @@ +# SliTaz package receipt v2. + +PACKAGE="LibreOffice" +VERSION="5.4.0" +CATEGORY="office" +SHORT_DESC="Powerful office suite" +MAINTAINER="al.bobylev@gmail.com" +LICENSE="MPL2" +WEB_SITE="https://www.libreoffice.org/" +HOST_ARCH="i486 x86_64" + +case $ARCH in + i486) lo_arch="x86" ; lo_arch2="x86" ;; + x86_64) lo_arch="x86_64"; lo_arch2="x86-64";; +esac + +TARBALL="LibreOffice_${VERSION}_Linux_${lo_arch2}_deb.tar.gz" +WGET_URL="http://download.documentfoundation.org/libreoffice/stable/$VERSION/deb/$lo_arch/$TARBALL" + +SPLIT="LibreOffice-langpack-de LibreOffice-langpack-es LibreOffice-langpack-fr \ +LibreOffice-langpack-it LibreOffice-langpack-pt-BR LibreOffice-langpack-ru \ +LibreOffice LibreOffice-extra" + +sizes() { du -chs ${1:-$fs} | awk 'END{print $1}'; } + +# Rules to configure and make the package. +compile_rules() +{ + echo 'Checking language packages...' + for i in de es fr it pt-BR ru; do + TARBALL="LibreOffice_${VERSION}_Linux_${lo_arch2}_deb_langpack_$i.tar.gz" + WGET_URL="$(dirname $WGET_URL)/$TARBALL" + [ -e "$SRC/$TARBALL" ] || wget -O $SRC/$TARBALL $WGET_URL + tar -xzf $SRC/$TARBALL + done + action 'Extracting LibreOffice...' + # extract all deb's filesystem into $install + find . -name '*.deb' -exec dpkg-deb -x '{}' $install \; + sizes $install + + # substitute desktop files symlinks by actual files (to be processed by cook) + find $install/usr/share/applications/ -type l -delete # no way to remove 'broken' symlinks by `rm` + find $install/opt/libreoffice${VERSION%.*}/share/xdg/ -type f | \ + while read i; do + mv $i $install/usr/share/applications/libreoffice${VERSION%.*}-$(basename $i) + done + # remove useless (after processing by sdft) lines from desktop files + sed -i '/^#/d; /^Actions=/d; s|X-Red-Hat-Base;||; + s|X-MandrivaLinux-[^;]*;||' $install/usr/share/applications/*.desktop +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + case $PACKAGE in + LibreOffice-langpack-*) + lang=${PACKAGE#*langpack-} + copy *$lang.res $lang/ $lang.zip dict-$lang/ *-$lang.xcd *_$lang.xcd + + action 'Removing unwanted files...' + find $fs -name '*.properties' | \ + while read i; do + j=$(basename $i .properties) + case $j in + *de|*en_US|*es|*fr|*it|*pt_BR|*ru) ;; + *) rm $i;; + esac + done + sizes + + case $lang in + de) L='German';; + es) L='Spanish';; + fr) L='French';; + it) L='Italian';; + pt-BR) L='Portuguese Brazilian';; + ru) L='Russian';; + esac + CAT="localization|$L langpack" + DEPENDS="LibreOffice" + ;; + LibreOffice) + copy @std *.inc + remove_already_packed + DEPENDS="gtk+ dbus-glib libcomerr libkrb5 xorg-libSM \ + xorg-libXinerama xorg-libXrandr" + SUGGESTED="gst1-plugins-base mesa" + + action 'Info: current size is...'; sizes + + action 'Removing Java support...' + # remove Java support + find $fs -name '*.jar' -delete + rm $fs/opt/libreoffice${VERSION%.*}/program/libofficebean.so + sizes + + action 'Removing unwanted files...' + # remove kde & qt support + rm $fs/opt/libreoffice${VERSION%.*}/program/libkde4be1lo.so + rm $fs/opt/libreoffice${VERSION%.*}/program/libvclplug_kde4lo.so + + # remove gstreamer0 support (libavmediagst_0_10.so) + # leave gstreamer1 support (libavmediagst.so) + rm $fs/opt/libreoffice${VERSION%.*}/program/libavmediagst_0_10.so + + # remove multilingual files + find $fs -name '*.properties' | \ + while read i; do + j=$(basename $i .properties) + case $j in + *de|*en_US|*es|*fr|*it|*pt_BR|*ru) ;; + *) rm $i;; + esac + done + + # remove icon themes; leave only default tango theme (-11MB) + for i in $fs/opt/libreoffice${VERSION%.*}/share/config/images*.zip; do + case $(basename $i .zip) in + *tango) ;; + *) rm $i;; + esac + done + + # remove wiki-publisher extension + rm -r $fs/opt/libreoffice${VERSION%.*}/share/extensions/wiki-publisher + + # remove unneded desktop integration + rm -r $fs/usr/lib/ + cd $fs/usr/share/ + rm -r mimelnk/ mime-info/ application-registry/ appdata/ + rm -r icons/locolor/ icons/gnome/ + cd icons/hicolor/ + rm -r scalable/ 512x512/ 256x256/ 128x128/ 32x32/ + + # remove other files + rm -r $fs/opt/libreoffice${VERSION%.*}/readmes/ + + sizes + + # action 'Compressing xml files...' + # # compress xml-based files + # t="$(mktemp)" + # find $fs -type f \( -name '*.xml' -o -name 'xsl' \) | \ + # while read i; do + # xmlstarlet c14n --without-comments "$i" | \ + # xmlstarlet --no-doc-namespace sel -B -t -c '*' > $t + # cat "$t" > "$i" + # done + # sizes + ;; + + LibreOffice-extra) + # all the rest... + copy @std *.inc + remove_already_packed + CAT="office|extra files" + ;; + esac +} diff -r 2017cce9bab8 -r 0f38eda21e70 compton/receipt --- a/compton/receipt Tue Aug 01 03:09:08 2017 +0300 +++ b/compton/receipt Wed Aug 02 20:14:13 2017 +0300 @@ -1,36 +1,42 @@ -# SliTaz package receipt. +# SliTaz package receipt v2. PACKAGE="compton" -VERSION="0.1_beta2" +VERSION="0.1_beta2+87" # 87 commits to master since release 0.1_beta2 +COMMIT="316eac0" CATEGORY="x-window" -SHORT_DESC="Light X Compositor new generation" +SHORT_DESC="A compositor for X" MAINTAINER="pankso@slitaz.org" LICENSE="MIT" -TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="https://github.com/chjj/compton" -WGET_URL="https://github.com/chjj/$PACKAGE/archive/v${VERSION}.tar.gz" HOST_ARCH="i486 arm" -DEPENDS="xorg-libXcomposite xorg-libXrandr libdrm xorg-xwininfo xorg-xprop" -BUILD_DEPENDS="xorg-libXcomposite-dev xorg-libXrandr-dev libdrm-dev \ -xorg-libXfixes-dev xorg-libXdamage-dev xorg-libXinerama-dev pcre-dev" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WGET_URL="https://github.com/chjj/compton/archive/${COMMIT:-v$VERSION}.tar.gz" + +BUILD_DEPENDS="pcre-dev xorg-libX11-dev xorg-libXcomposite-dev \ +xorg-libXfixes-dev xorg-libXdamage-dev xorg-libXrender-dev xorg-libXext-dev \ +xorg-libXrandr-dev xorg-libXinerama-dev libconfig-dev dbus-dev libdrm-dev \ +mesa-dev asciidoc libxml2-tools docbook-xsl" # Rules to configure and make the package. compile_rules() { - sed -i "s:\(COMPTON_VERSION ?= \)git.*:\1v${VERSION}:" Makefile make \ - NO_LIBCONFIG="true" \ - NO_VSYNC_OPENGL="true" \ - NO_DBUS="true" + COMPTON_VERSION=v$VERSION \ + PREFIX=/usr \ + compton docs && + make install + mkdir -p $install/etc/xdg/compton + cp $src/compton.sample.conf $install/etc/xdg/compton/compton.conf + cp -r $stuff/autostart $install/etc/xdg/ } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/etc/xdg/compton $fs/usr/bin - cp $src/compton $fs/usr/bin - cp $src/compton.sample.conf $fs/etc/xdg/compton/compton.conf - cp -r $stuff/autostart $fs/etc/xdg + copy etc/ bin/ # skip icons + DEPENDS="dbus libconfig mesa pcre xorg-libX11 xorg-libXcomposite \ + xorg-libXdamage xorg-libXext xorg-libXfixes xorg-libXinerama \ + xorg-libXrandr xorg-libXrender xorg-xwininfo xorg-xprop" + CONFIG_FILES="/etc/xdg/compton/compton.conf" } - diff -r 2017cce9bab8 -r 0f38eda21e70 cookutils/receipt --- a/cookutils/receipt Tue Aug 01 03:09:08 2017 +0300 +++ b/cookutils/receipt Wed Aug 02 20:14:13 2017 +0300 @@ -1,13 +1,12 @@ # SliTaz package receipt v2. PACKAGE="cookutils" -VERSION="953" +VERSION="954" CATEGORY="base-system" SHORT_DESC="SliTaz packages builder new generation" MAINTAINER="pankso@slitaz.org" LICENSE="GPL3" WEB_SITE="http://www.slitaz.org/" -TAGS="slitaz" HOST_ARCH="i486 arm" TARBALL="$PACKAGE-$VERSION.tar.bz2" @@ -27,6 +26,7 @@ # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { + TAGS="slitaz" case $PACKAGE in cookutils) copy '*/'; rm -r $fs/etc/init.d diff -r 2017cce9bab8 -r 0f38eda21e70 cppunit-dev/receipt --- a/cppunit-dev/receipt Tue Aug 01 03:09:08 2017 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -# SliTaz package receipt. - -PACKAGE="cppunit-dev" -VERSION="1.12.1" -CATEGORY="development" -SHORT_DESC="Devel file for the cppunit framework." -MAINTAINER="pankso@slitaz.org" -LICENSE="LGPL2.1" -WEB_SITE="http://cppunit.sourceforge.net/" -WANTED="cppunit" - -DEPENDS="pkg-config" - -# Rules to gen a SliTaz package suitable for Tazpkg. -genpkg_rules() -{ - mkdir -p $fs/usr/lib $fs/usr/share - cp -a $install/usr/bin $fs/usr - cp -a $install/usr/include $fs/usr - cp -a $install/usr/lib/*.*a $fs/usr/lib - cp -a $install/usr/lib/pkgconfig $fs/usr/lib - cp -a $install/usr/share/aclocal $fs/usr/share -} diff -r 2017cce9bab8 -r 0f38eda21e70 cppunit/receipt --- a/cppunit/receipt Tue Aug 01 03:09:08 2017 +0300 +++ b/cppunit/receipt Wed Aug 02 20:14:13 2017 +0300 @@ -1,30 +1,30 @@ -# SliTaz package receipt. +# SliTaz package receipt v2. PACKAGE="cppunit" VERSION="1.12.1" CATEGORY="system-tools" -SHORT_DESC="A C++ unit testing framework." +SHORT_DESC="A C++ unit testing framework" MAINTAINER="pankso@slitaz.org" LICENSE="LGPL2.1" +WEB_SITE="https://sourceforge.net/projects/cppunit/" + TARBALL="$PACKAGE-$VERSION.tar.gz" -WEB_SITE="http://cppunit.sourceforge.net/" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" BUILD_DEPENDS="gfortran doxygen coreutils-path" +SPLIT="cppunit-dev" # Rules to configure and make the package. compile_rules() { - cd $src - ./configure \ - --prefix=/usr \ - $CONFIGURE_ARGS && - make && make install + ./configure $CONFIGURE_ARGS && make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/lib - cp -a $install/usr/lib/*.so* $fs/usr/lib + case $PACKAGE in + cppunit) copy @std;; + *-dev) copy @dev;; + esac }