wok-next diff protobuf/receipt @ rev 20337
orpheus: tiny patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Nov 16 21:37:29 2017 +0100 (2017-11-16) |
parents | 51a1ebbda768 |
children | 6c73b944e8dd |
line diff
1.1 --- a/protobuf/receipt Fri Oct 18 19:43:55 2013 +0000 1.2 +++ b/protobuf/receipt Thu Nov 16 21:37:29 2017 +0100 1.3 @@ -1,29 +1,42 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="protobuf" 1.8 -VERSION="2.4.1" 1.9 +VERSION="3.3.0" 1.10 CATEGORY="network" 1.11 -SHORT_DESC="Encode structured data in an efficient yet extensible format." 1.12 +SHORT_DESC="Protocol Buffers - Google's data interchange format" 1.13 MAINTAINER="pankso@slitaz.org" 1.14 LICENSE="BSD" 1.15 -TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.16 -WEB_SITE="http://code.google.com/p/protobuf/" 1.17 -WGET_URL="http://protobuf.googlecode.com/files/$TARBALL" 1.18 +WEB_SITE="https://developers.google.com/protocol-buffers/" 1.19 + 1.20 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.21 +WGET_URL="https://github.com/google/protobuf/archive/v$VERSION.tar.gz" 1.22 + 1.23 +BUILD_DEPENDS="curl automake libtool zlib-dev python-dev setuptools" 1.24 +SPLIT="protobuf-python protobuf-dev" 1.25 1.26 # Rules to configure and make the package. 1.27 compile_rules() 1.28 { 1.29 - cd $src 1.30 - ./configure \ 1.31 - --prefix=/usr \ 1.32 - $CONFIGURE_ARGS && 1.33 - make && make install 1.34 + ./autogen.sh && 1.35 + ./configure $CONFIGURE_ARGS && make && make install || exit 1 1.36 + 1.37 + cd $src/python 1.38 + python setup.py install --prefix=/usr --root $DESTDIR 1.39 } 1.40 1.41 # Rules to gen a SliTaz package suitable for Tazpkg. 1.42 genpkg_rules() 1.43 { 1.44 - mkdir -p $fs/usr/lib 1.45 - cp -a $install/usr/bin $fs/usr 1.46 - cp -a $install/usr/lib/*.so* $fs/usr/lib 1.47 + case $PACKAGE in 1.48 + protobuf) 1.49 + copy bin/ *.so* 1.50 + DEPENDS="zlib" 1.51 + ;; 1.52 + protobuf-python) 1.53 + copy python2.7/ 1.54 + CAT="network|Python bindings" 1.55 + DEPENDS="python protobuf" 1.56 + ;; 1.57 + *-dev) copy @dev;; 1.58 + esac 1.59 }