diff --git a/thirdparty/gettext/HPKBUILD b/thirdparty/gettext/HPKBUILD index 18dba22eab6f834893be0b3bb3b909fe8279430c..55e5fc1c6e49b4d4f8ae13fa6bc294f60cc75dc9 100755 --- a/thirdparty/gettext/HPKBUILD +++ b/thirdparty/gettext/HPKBUILD @@ -11,6 +11,8 @@ # See the License for the specific language governing permissions and # limitations under the License. + + # Contributor: 城meto # Maintainer: 城meto pkgname=gettext @@ -25,15 +27,23 @@ makedepends=() source="https://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.gz" buildtools="configure" + + autounpack=true downloadpackage=true + + builddir=$pkgname-$pkgver packagename=$pkgname-$pkgver.tar.gz + + source envset.sh host= + + prepare() { mkdir $builddir/$ARCH-build if [ $ARCH == "armeabi-v7a" ];then @@ -48,6 +58,11 @@ prepare() { fi } + + + + + build() { cd $builddir/$ARCH-build LDFLAGS="--static $LDFLAGS" CFLAGS="-static -Wno-error=int-conversion $CFLAGS" \ @@ -58,6 +73,9 @@ build() { return $ret } + + + package() { cd $builddir/$ARCH-build make install VERBOSE=1 >> `pwd`/build.log 2>&1 @@ -72,11 +90,15 @@ package() { fi } + + check() { echo "The test must be on an OpenHarmony device!" # TODO } + + # 清理环境 cleanbuild(){ rm -rf ${PWD}/$builddir #${PWD}/$packagename