wok-6.x diff scim/receipt @ rev 19989
Add knot
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 02 18:38:44 2017 +0200 (2017-07-02) |
parents | fb330dab8442 |
children | ff106c3028e0 |
line diff
1.1 --- a/scim/receipt Tue Apr 01 06:44:58 2014 +0000 1.2 +++ b/scim/receipt Sun Jul 02 18:38:44 2017 +0200 1.3 @@ -15,47 +15,49 @@ 1.4 # Rules to configure and make the package. 1.5 compile_rules() 1.6 { 1.7 - cd $src 1.8 - while read file; do 1.9 - [ -f done.$file ] && continue 1.10 - echo "Apply $file..." 1.11 - patch -p1 < $stuff/$file || return 1 1.12 - touch done.$file 1.13 - done <<EOT 1.14 + while read file; do 1.15 + [ -f done.$file ] && continue 1.16 + echo "Apply $file..." 1.17 + patch -p1 -i $stuff/$file || return 1 1.18 + touch done.$file 1.19 + done <<EOT 1.20 scim-glibc-2.10.patch 1.21 EOT 1.22 - ./configure --prefix=/usr \ 1.23 - --sysconfdir=/etc \ 1.24 - --with-x \ 1.25 - --with-gtk-im-module-dir=$(ls -d /usr/lib/gtk-2*/2*/immodules/) \ 1.26 - --mandir=/usr/share/man \ 1.27 - --infodir=/usr/share/info \ 1.28 - $CONFIGURE_ARGS 2>&1 | grep -v po/POTFILES && 1.29 - make $MAKEFLAGS && 1.30 - make DESTDIR=$DESTDIR install 1.31 + 1.32 + ./configure \ 1.33 + --prefix=/usr \ 1.34 + --sysconfdir=/etc \ 1.35 + --with-x \ 1.36 + --with-gtk-im-module-dir=$(ls -d /usr/lib/gtk-2*/2*/immodules/) \ 1.37 + --mandir=/usr/share/man \ 1.38 + --infodir=/usr/share/info \ 1.39 + $CONFIGURE_ARGS 2>&1 | grep -v po/POTFILES && 1.40 + make $MAKEFLAGS && 1.41 + make DESTDIR=$DESTDIR install 1.42 } 1.43 1.44 # Rules to gen a SliTaz package suitable for Tazpkg. 1.45 genpkg_rules() 1.46 { 1.47 - mkdir -p $fs/usr/share/pixmaps 1.48 - cp -a $install/etc $fs/ 1.49 - cp -a $install/usr/bin $fs/usr 1.50 - cp -a $install/usr/lib $fs/usr 1.51 - cp -a $install/usr/share/scim $fs/usr/share 1.52 - cp $install/usr/share/pixmaps/scim-setup.png $fs/usr/share/pixmaps 1.53 - find $fs/usr/lib -name '*.la' -exec rm {} \; 1.54 - find $fs/usr/lib -name '*.a' -exec rm {} \; 1.55 - rm -rf $fs/usr/lib/pkgconfig 1.56 - chmod +x $fs/usr/bin/scim-setup 1.57 + mkdir -p $fs/usr/share/pixmaps 1.58 + cp -a $install/etc $fs/ 1.59 + cp -a $install/usr/bin $fs/usr 1.60 + cp -a $install/usr/lib $fs/usr 1.61 + cp -a $install/usr/share/scim $fs/usr/share 1.62 + cp $install/usr/share/pixmaps/scim-setup.png $fs/usr/share/pixmaps 1.63 + find $fs/usr/lib -name '*.la' -exec rm {} \; 1.64 + find $fs/usr/lib -name '*.a' -exec rm {} \; 1.65 + rm -rf $fs/usr/lib/pkgconfig 1.66 + chmod +x $fs/usr/bin/scim-setup 1.67 } 1.68 1.69 post_install() 1.70 { 1.71 - echo "Processing post-install commands..." 1.72 - echo -n "Updating gtk.immodules... " 1.73 - chroot "$1/" /usr/bin/gtk-query-immodules-2.0 > $1/etc/gtk-2.0/gtk.immodules 1.74 - echo "done." 1.75 + newline 1.76 + action 'Updating gtk.immodules... ' 1.77 + chroot "$1/" /usr/bin/gtk-query-immodules-2.0 > $1/etc/gtk-2.0/gtk.immodules 1.78 + status 1.79 + 1.80 cat <<EOT 1.81 In order to start scim and use chinese after boot time, 1.82 add the following code to your autostart.sh(openbox): 1.83 @@ -73,5 +75,5 @@ 1.84 1.85 post_remove() 1.86 { 1.87 - /usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules 1.88 + /usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules 1.89 }