wok diff opencc/receipt @ rev 10962

Fixed opencc CATEGORY. Don't use pushd and popd cause build bot may not use bash. Some clean up.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Sep 20 10:22:35 2011 +0000 (2011-09-20)
parents 3f3e2cc53af0
children b4bb522836eb
line diff
     1.1 --- a/opencc/receipt	Tue Sep 20 20:35:27 2011 +0800
     1.2 +++ b/opencc/receipt	Tue Sep 20 10:22:35 2011 +0000
     1.3 @@ -2,7 +2,7 @@
     1.4  
     1.5  PACKAGE="opencc"
     1.6  VERSION="0.2.0"
     1.7 -CATEGORY=""
     1.8 +CATEGORY="misc"
     1.9  SHORT_DESC="Libraries for Simplified-Traditional Chinese Conversion"
    1.10  MAINTAINER="liupeng <hipeng@yahoo.com>"
    1.11  DEPENDS=""
    1.12 @@ -14,13 +14,12 @@
    1.13  # Rules to configure and make the package.
    1.14  compile_rules()
    1.15  {
    1.16 +	mkdir -p $src/build
    1.17 +	cd $src/build
    1.18 +	cmake $src -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DENABLE_GETTEXT:BOOL=ON || return 1
    1.19  	cd $src
    1.20 -	mkdir build
    1.21 -	pushd build
    1.22 -	cmake ../ -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DENABLE_GETTEXT:BOOL=ON || return 1
    1.23 -	popd
    1.24  	make -C build || return 1
    1.25 -	make install -C build DESTDIR=$PWD/_pkg
    1.26 +	make install -C build DESTDIR=$DESTDIR
    1.27  }
    1.28  
    1.29  # Rules to gen a SliTaz package suitable for Tazpkg.