wok-next rev 19781
Up dbus, dbus-glib, libsigc++, glibmm; libpng16, lcms2, optipng, pngquant.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Jun 17 22:59:11 2017 +0300 (2017-06-17) |
parents | 5ff41aaf68d9 |
children | e5efff3d8fce |
files | dbus-dev/receipt dbus-glib-dev/receipt dbus-glib/receipt dbus-helper/receipt dbus/receipt glibmm/receipt lcms2/receipt libpng16/receipt libsigc++/receipt optipng/receipt pngquant/receipt |
line diff
1.1 --- a/dbus-dev/receipt Sat Jun 17 01:38:14 2017 +0300 1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 1.3 @@ -1,19 +0,0 @@ 1.4 -# SliTaz package receipt. 1.5 - 1.6 -PACKAGE="dbus-dev" 1.7 -VERSION="1.10.14" 1.8 -CATEGORY="development" 1.9 -SHORT_DESC="D-Bus, a message bus system, development files" 1.10 -MAINTAINER="pankso@slitaz.org" 1.11 -LICENSE="GPL2" 1.12 -WEB_SITE="https://www.freedesktop.org/wiki/Software/dbus/" 1.13 -HOST_ARCH="i486 arm" 1.14 - 1.15 -WANTED="dbus" 1.16 -DEPENDS="dbus" 1.17 - 1.18 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.19 -genpkg_rules() 1.20 -{ 1.21 - cook_copy_files *.h *.la *.pc 1.22 -}
2.1 --- a/dbus-glib-dev/receipt Sat Jun 17 01:38:14 2017 +0300 2.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 2.3 @@ -1,22 +0,0 @@ 2.4 -# SliTaz package receipt. 2.5 - 2.6 -PACKAGE="dbus-glib-dev" 2.7 -VERSION="0.102" 2.8 -CATEGORY="development" 2.9 -SHORT_DESC="D-Bus glib binding." 2.10 -WANTED="dbus-glib" 2.11 -MAINTAINER="pankso@slitaz.org" 2.12 -LICENSE="GPL2" 2.13 -WEB_SITE="http://freedesktop.org/wiki/Software/DBusBindings" 2.14 -HOST_ARCH="i486 arm" 2.15 - 2.16 -DEPENDS="dbus-glib dbus-dev glib-dev pkg-config" 2.17 - 2.18 -# Rules to gen a SliTaz package suitable for Tazpkg. 2.19 -genpkg_rules() 2.20 -{ 2.21 - mkdir -p $fs/usr/lib 2.22 - cp -a $install/usr/include $fs/usr 2.23 - cp -a $install/usr/lib/*.*a $fs/usr/lib 2.24 - cp -a $install/usr/lib/pkgconfig $fs/usr/lib 2.25 -}
3.1 --- a/dbus-glib/receipt Sat Jun 17 01:38:14 2017 +0300 3.2 +++ b/dbus-glib/receipt Sat Jun 17 22:59:11 2017 +0300 3.3 @@ -1,31 +1,34 @@ 3.4 -# SliTaz package receipt. 3.5 +# SliTaz package receipt v2. 3.6 3.7 PACKAGE="dbus-glib" 3.8 -VERSION="0.102" 3.9 +VERSION="0.108" 3.10 CATEGORY="x-window" 3.11 -SHORT_DESC="D-Bus glib binding." 3.12 +SHORT_DESC="GLib interfaces to the D-Bus API" 3.13 MAINTAINER="pankso@slitaz.org" 3.14 LICENSE="GPL2" 3.15 -TARBALL="$PACKAGE-$VERSION.tar.gz" 3.16 -WEB_SITE="http://freedesktop.org/wiki/Software/DBusBindings" 3.17 -WGET_URL="http://dbus.freedesktop.org/releases/dbus-glib/$TARBALL" 3.18 +WEB_SITE="https://freedesktop.org/wiki/Software/DBusBindings/#dbus-glibobsoleteunmaintained" 3.19 HOST_ARCH="i486 arm" 3.20 3.21 -DEPENDS="dbus glib expat" 3.22 -BUILD_DEPENDS="dbus-dev glib-dev expat-dev pkg-config gettext \ 3.23 -gtk-doc" 3.24 +TARBALL="$PACKAGE-$VERSION.tar.gz" 3.25 +WGET_URL="http://dbus.freedesktop.org/releases/dbus-glib/$TARBALL" 3.26 + 3.27 +BUILD_DEPENDS="dbus-dev glib-dev expat-dev gettext gtk-doc" 3.28 +BUILD_DEPENDS_arm="dbus-dev glib-dev expat-dev" 3.29 +SPLIT="dbus-glib-dev" 3.30 3.31 # Handle cross compilation. Host pkg-config/gettext are used 3.32 case "$ARCH" in 3.33 - arm*) 3.34 - BUILD_DEPENDS="dbus-dev glib-dev expat-dev" 3.35 + arm*) 3.36 export ac_cv_have_abstract_sockets=${ac_cv_have_abstract_sockets=yes} ;; 3.37 esac 3.38 3.39 # Rules to configure and make the package. 3.40 compile_rules() 3.41 { 3.42 - ./configure $CONFIGURE_ARGS && 3.43 + ./configure \ 3.44 + --sysconfdir=/etc \ 3.45 + --disable-static \ 3.46 + $CONFIGURE_ARGS && 3.47 case "$ARCH" in 3.48 arm) 3.49 patch -p1 < $stuff/dbus-glib.patch && 3.50 @@ -37,7 +40,14 @@ 3.51 # Rules to gen a SliTaz package suitable for Tazpkg. 3.52 genpkg_rules() 3.53 { 3.54 - mkdir -p $fs/usr/lib 3.55 - cp -a $install/usr/bin $fs/usr 3.56 - cp -a $install/usr/lib/*.so* $fs/usr/lib 3.57 + case $PACKAGE in 3.58 + dbus-glib) 3.59 + copy bin/ *.so* # exclude bash completion 3.60 + DEPENDS="dbus glib expat" 3.61 + ;; 3.62 + *-dev) 3.63 + copy @dev 3.64 + DEPENDS="dbus-glib dbus-dev glib-dev" 3.65 + ;; 3.66 + esac 3.67 }
4.1 --- a/dbus-helper/receipt Sat Jun 17 01:38:14 2017 +0300 4.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 4.3 @@ -1,20 +0,0 @@ 4.4 -# SliTaz package receipt. 4.5 - 4.6 -PACKAGE="dbus-helper" 4.7 -VERSION="1.10.14" 4.8 -CATEGORY="x-window" 4.9 -SHORT_DESC="D-Bus, a message bus system, dbus-daemon-launch-helper" 4.10 -MAINTAINER="pankso@slitaz.org" 4.11 -LICENSE="GPL2" 4.12 -WEB_SITE="https://www.freedesktop.org/wiki/Software/dbus" 4.13 - 4.14 -WANTED="dbus" 4.15 -DEPENDS="dbus" 4.16 - 4.17 -# Rules to gen a SliTaz package suitable for Tazpkg. 4.18 -genpkg_rules() 4.19 -{ 4.20 - cook_copy_files dbus-daemon-launch-helper 4.21 - chown root:18 $fs/usr/libexec/dbus-daemon-launch-helper 4.22 - chmod 4750 $fs/usr/libexec/dbus-daemon-launch-helper 4.23 -}
5.1 --- a/dbus/receipt Sat Jun 17 01:38:14 2017 +0300 5.2 +++ b/dbus/receipt Sat Jun 17 22:59:11 2017 +0300 5.3 @@ -1,4 +1,4 @@ 5.4 -# SliTaz package receipt. 5.5 +# SliTaz package receipt v2. 5.6 5.7 PACKAGE="dbus" 5.8 VERSION="1.10.14" 5.9 @@ -12,9 +12,8 @@ 5.10 TARBALL="$PACKAGE-$VERSION.tar.gz" 5.11 WGET_URL="https://dbus.freedesktop.org/releases/dbus/$TARBALL" 5.12 5.13 -DEPENDS="expat xorg-libX11 slitaz-base-files" 5.14 BUILD_DEPENDS="expat-dev xorg-libX11-dev" 5.15 -SPLIT="dbus-helper" 5.16 +SPLIT="dbus-helper dbus dbus-dev" 5.17 5.18 # Rules to configure and make the package. 5.19 compile_rules() 5.20 @@ -30,23 +29,32 @@ 5.21 --with-console-auth-dir=/run/console/ \ 5.22 --docdir=/usr/share/doc/dbus-$VERSION \ 5.23 $CONFIGURE_ARGS && 5.24 - make && make -j 1 install 5.25 + make && make -j1 install 5.26 + 5.27 + # Init script 5.28 + cp -a $stuff/etc $install 5.29 + chown -R root.root $install/etc 5.30 } 5.31 5.32 # Rules to gen a SliTaz package suitable for Tazpkg. 5.33 genpkg_rules() 5.34 { 5.35 - cook_copy_folders var bin dbus-1 5.36 - cook_copy_files *.so* 5.37 - 5.38 - # Init script 5.39 - cp -a $stuff/etc $fs 5.40 - 5.41 - chown -R root.root $fs 5.42 + case $PACKAGE in 5.43 + dbus-helper) 5.44 + copy dbus-daemon-launch-helper 5.45 + CAT="x-window|dbus-daemon-launch-helper" 5.46 + ;; 5.47 + dbus) 5.48 + copy @std 5.49 + remove_already_packed 5.50 + DEPENDS="expat xorg-libX11 slitaz-base-files" 5.51 + CONFIG_FILES="/etc/dbus-1/session.conf /etc/dbus-1/system.conf /etc/dbus-1/system.d/" 5.52 + ;; 5.53 + *-dev) copy @dev;; 5.54 + esac 5.55 } 5.56 5.57 -pre_install() 5.58 -{ 5.59 +pre_install_dbus() { 5.60 # Go for echoing on configuration files if any messagebus user 5.61 # was found. 5.62 if ! grep -qs 'messagebus' "$1/etc/passwd"; then 5.63 @@ -68,11 +76,20 @@ 5.64 [ -d "$1/var/run" ] || mkdir -p "$1/var/run" 5.65 } 5.66 5.67 -pre_remove() 5.68 -{ 5.69 +post_install_dbus() { 5.70 + dbus-uuidgen --ensure 5.71 +} 5.72 + 5.73 +pre_remove_dbus() { 5.74 if [ -z "$1" ]; then 5.75 /etc/init.d/dbus stop 5.76 - deluser messagebus 5.77 - delgroup messagebus 5.78 - fi 2> /dev/null 5.79 + fi 2>/dev/null 5.80 + chroot "$1/" deluser messagebus 5.81 + chroot "$1/" delgroup messagebus 5.82 } 5.83 + 5.84 +post_install_dbus_helper() { 5.85 + local i="$1/usr/libexec/dbus-daemon-launch-helper" 5.86 + chown root:messagebus $i 5.87 + chmod 4750 $i 5.88 +}
6.1 --- a/glibmm/receipt Sat Jun 17 01:38:14 2017 +0300 6.2 +++ b/glibmm/receipt Sat Jun 17 22:59:11 2017 +0300 6.3 @@ -1,7 +1,7 @@ 6.4 # SliTaz package receipt v2. 6.5 6.6 PACKAGE="glibmm" 6.7 -VERSION="2.48.1" 6.8 +VERSION="2.50.0" 6.9 CATEGORY="x-window" 6.10 SHORT_DESC="C++ interface for GTK+" 6.11 MAINTAINER="pankso@slitaz.org"
7.1 --- a/lcms2/receipt Sat Jun 17 01:38:14 2017 +0300 7.2 +++ b/lcms2/receipt Sat Jun 17 22:59:11 2017 +0300 7.3 @@ -17,10 +17,7 @@ 7.4 # Rules to configure and make the package. 7.5 compile_rules() 7.6 { 7.7 - ./configure \ 7.8 - --disable-static \ 7.9 - $CONFIGURE_ARGS && 7.10 - make && make install 7.11 + ./configure $CONFIGURE_ARGS && make && make install 7.12 } 7.13 7.14 # Rules to gen a SliTaz package suitable for Tazpkg.
8.1 --- a/libpng16/receipt Sat Jun 17 01:38:14 2017 +0300 8.2 +++ b/libpng16/receipt Sat Jun 17 22:59:11 2017 +0300 8.3 @@ -19,10 +19,7 @@ 8.4 compile_rules() 8.5 { 8.6 LIBS=-lpthread \ 8.7 - ./configure \ 8.8 - --disable-static \ 8.9 - $CONFIGURE_ARGS && 8.10 - make && make install && 8.11 + ./configure $CONFIGURE_ARGS && make && make install && 8.12 8.13 docdir=$install/usr/share/doc/libpng-$VERSION && 8.14 mkdir -p $docdir &&
9.1 --- a/libsigc++/receipt Sat Jun 17 01:38:14 2017 +0300 9.2 +++ b/libsigc++/receipt Sat Jun 17 22:59:11 2017 +0300 9.3 @@ -1,7 +1,7 @@ 9.4 # SliTaz package receipt v2. 9.5 9.6 PACKAGE="libsigc++" 9.7 -VERSION="2.8.0" 9.8 +VERSION="2.10.0" 9.9 CATEGORY="system-tools" 9.10 SHORT_DESC="Callback Framework for C++" 9.11 MAINTAINER="pankso@slitaz.org" 9.12 @@ -18,6 +18,9 @@ 9.13 # Rules to configure and make the package. 9.14 compile_rules() 9.15 { 9.16 + sed -e "/^libdocdir =/ s/\$(book_name)/libsigc++-$VERSION/" -i \ 9.17 + docs/Makefile.in 9.18 + 9.19 ./configure $CONFIGURE_ARGS && make && make install 9.20 } 9.21 9.22 @@ -26,6 +29,6 @@ 9.23 { 9.24 case $PACKAGE in 9.25 libsigc++) copy @std;; 9.26 - libsigc++-dev) copy @dev;; 9.27 + *-dev) copy @dev;; 9.28 esac 9.29 }
10.1 --- a/optipng/receipt Sat Jun 17 01:38:14 2017 +0300 10.2 +++ b/optipng/receipt Sat Jun 17 22:59:11 2017 +0300 10.3 @@ -1,9 +1,9 @@ 10.4 -# SliTaz package receipt. 10.5 +# SliTaz package receipt v2. 10.6 10.7 PACKAGE="optipng" 10.8 VERSION="0.7.6" 10.9 CATEGORY="utilities" 10.10 -SHORT_DESC="A command line tool to compress and optimize PNG images." 10.11 +SHORT_DESC="Compress and optimize PNG images" 10.12 MAINTAINER="pankso@slitaz.org" 10.13 LICENSE="zlib/libpng" 10.14 WEB_SITE="http://optipng.sourceforge.net/" 10.15 @@ -12,23 +12,44 @@ 10.16 TARBALL="$PACKAGE-$VERSION.tar.gz" 10.17 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 10.18 10.19 -DEPENDS="libpng" 10.20 -BUILD_DEPENDS="libpng-dev zlib-dev" 10.21 +BUILD_DEPENDS="libpng16-dev zlib-dev" 10.22 +SPLIT="optipng-static" 10.23 10.24 # Rules to configure and make the package. 10.25 compile_rules() 10.26 { 10.27 sed -i 's|prefix)/man|prefix)/share/man|' configure 10.28 10.29 + # make statically linked binary 10.30 + LDFLAGS='-static' \ 10.31 ./configure \ 10.32 -prefix=/usr \ 10.33 -with-system-libpng && 10.34 - make && 10.35 - make install 10.36 + make && make install && 10.37 + mv -v $install/usr/bin/optipng $install/usr/bin/optipng-static && 10.38 + 10.39 + # make dynamically linked binary 10.40 + make clean && 10.41 + ./configure \ 10.42 + -prefix=/usr \ 10.43 + -with-system-libpng && 10.44 + make && make install 10.45 } 10.46 10.47 # Rules to gen a SliTaz package suitable for Tazpkg. 10.48 genpkg_rules() 10.49 { 10.50 - cook_copy_files optipng 10.51 + case $PACKAGE in 10.52 + optipng) 10.53 + copy optipng 10.54 + DEPENDS="libpng16 zlib" 10.55 + ;; 10.56 + optipng-static) 10.57 + copy optipng-static 10.58 + ln -s optipng-static $fs/usr/bin/optipng 10.59 + CAT="graphics|statically linked" 10.60 + PROVIDE="optipng" 10.61 + DEPENDS=" " 10.62 + ;; 10.63 + esac 10.64 }
11.1 --- a/pngquant/receipt Sat Jun 17 01:38:14 2017 +0300 11.2 +++ b/pngquant/receipt Sat Jun 17 22:59:11 2017 +0300 11.3 @@ -1,9 +1,9 @@ 11.4 -# SliTaz package receipt. 11.5 +# SliTaz package receipt v2. 11.6 11.7 PACKAGE="pngquant" 11.8 -VERSION="2.8.2" 11.9 +VERSION="2.9.1" 11.10 CATEGORY="graphics" 11.11 -SHORT_DESC="Command-line utility and a library for lossy compression of PNG images" 11.12 +SHORT_DESC="Lossy compression of PNG images" 11.13 MAINTAINER="al.bobylev@gmail.com" 11.14 LICENSE="GPL3" 11.15 WEB_SITE="https://pngquant.org/" 11.16 @@ -14,8 +14,8 @@ 11.17 EXTRA_TARBALL="libimagequant-$VERSION" 11.18 EXTRA_WGET_URL="$GITHUB/ImageOptim/libimagequant/tarball/$VERSION" 11.19 11.20 -DEPENDS="lcms2 libpng zlib" 11.21 -BUILD_DEPENDS="lcms2-dev libpng-dev zlib-dev" 11.22 +BUILD_DEPENDS="lcms2-dev libpng16-dev zlib-dev" 11.23 +SPLIT="pngquant-static" 11.24 11.25 # Rules to configure and make the package. 11.26 compile_rules() 11.27 @@ -26,6 +26,14 @@ 11.28 tar -xf $SRC/$EXTRA_TARBALL -C $src 11.29 mv $src/ImageOptim-*/* $src/lib/ 11.30 11.31 + # make statically linked binary 11.32 + LDFLAGS='-static -pthread' \ 11.33 + ./configure \ 11.34 + --prefix=/usr && 11.35 + make && make install && 11.36 + mv -v $install/usr/bin/pngquant $install/usr/bin/pngquant-static && 11.37 + 11.38 + # make dynamically linked binary 11.39 ./configure \ 11.40 --prefix=/usr && 11.41 make && make install 11.42 @@ -34,5 +42,17 @@ 11.43 # Rules to gen a SliTaz package suitable for Tazpkg. 11.44 genpkg_rules() 11.45 { 11.46 - cook_copy_files pngquant 11.47 + case $PACKAGE in 11.48 + pngquant) 11.49 + copy pngquant 11.50 + DEPENDS="lcms2 libpng16 zlib" 11.51 + ;; 11.52 + pngquant-static) 11.53 + copy pngquant-static 11.54 + ln -s pngquant-static $fs/usr/bin/pngquant 11.55 + CAT="graphics|statically linked" 11.56 + PROVIDE="pngquant" 11.57 + DEPENDS=" " 11.58 + ;; 11.59 + esac 11.60 }