Commits

Lee Pak Hong  committed 6d9cb92

Update ibus-chewing to 1.4.3

Signed-off-by: Lee Pak Hong <benreilly@vector.Linux.net>

  • Participants
  • Parent commits 73368f7

Comments (0)

Files changed (1)

File var/vabs/ibus-chewing/src/ibus-chewing.SlackBuild

 # AUTHORS = 
 
 NAME="ibus-chewing"            #Enter package Name!
-VERSION=${VERSION:-"1.3.10"}      #Enter package Version!
+VERSION=${VERSION:-"1.4.3"}      #Enter package Version!
 VER=$(echo $VERSION|sed 's/-/_/') #this fixes - in version
 VL_PACKAGER=${VL_PACKAGER:-"hata_ph"}   #Enter your Name!
-LINK=${LINK:-"http://ibus.googlecode.com/files/ibus-chewing-1.3.10-Source.tar.gz"}  #Enter URL for package here!
+LINK=${LINK:-"http://ibus.googlecode.com/files/$NAME-$VERSION-Source.tar.gz"}  #Enter URL for package here!
 
 
 #SYSTEM VARIABLES
 #----------------------------------------------------------------------------
-BUILDNUM=${BUILDNUM:-"2"}
+BUILDNUM=${BUILDNUM:-"1"}
 VL_VERSION=${VL_VERSION:-"$(ls /var/log/packages/|grep vlconfig2|cut -d "-" -f4|cut -c 2-5)"}
 BUILD=${BUILD:-"$BUILDNUM""$VL_VERSION"}
 ARCH=${ARCH:-"$(uname -m)"}
 MAKEDEPENDS=${MAKEDEPENDS:-"ibus gob2 libchewing"}
 #----------------------------------------------------------------------------
 
+# DO NOT EXECUTE if NORUN is set to 1
+if [ "$NORUN" != "1" ]; then
 
 #SETUP PACKAGING ENVIRONMENT
 #--------------------------------------------
 PKG=$TMP/package-$NAME
 #--------------------------------------------
 
-wget https://fedorahosted.org/releases/c/m/cmake-fedora/cmake-fedora-0.8.1-modules-only.tar.gz
+#wget https://fedorahosted.org/releases/c/m/cmake-fedora/cmake-fedora-0.8.1-modules-only.tar.gz
 
 if [ $UID != 0 ]; then
    echo "You are not authorized to run this script. Please login as root"
 #-----------------------------------------------------
 echo "Extracting source..."
 tar xvf $CWD/$NAME-$VERSION-Source.tar.* || exit 1
+mkdir -p $PKG
 #-----------------------------------------------------
 
 
 cd $TMP/$NAME-$VERSION-Source
-tar xvf $CWD/cmake-fedora-0.8.1-modules-only.tar.gz
+#tar xvf $CWD/cmake-fedora-0.8.1-modules-only.tar.gz
 # Put any Patches into a patches folder in the src dir
 #-----------------------------------------------------
 #for i in $CWD/patches/*;do
 
 
 mkdir -p $PKG/usr/doc/$NAME-$VERSION
-cp -a ANNOUNCE* AUTHORS* BUGS* COPYING* ChangeLog* CHANGELOG* Credits* DEVELOPERS \
-LICENSE* MANIFEST PROVENANCE README* TODO* Exception_to_GPL_for_Qt.txt \
+cp -a AUTHORS* COPYING* ChangeLog* INSTALL README* \
 $PKG/usr/doc/$NAME-$VERSION
 cat $CWD/$NAME.SlackBuild > $PKG/usr/doc/$NAME-$VERSION/$NAME.SlackBuild
 
 cd $CWD
 echo "Cleaning up temp files..." && rm -rf $TMP
 echo "Package Complete"
+fi
 #--------------------------------------------------------------
 
 # vim: set tabstop=4 shiftwidth=4 foldmethod=marker : ##