wok-next annotate 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 |
rev | line source |
---|---|
al@19741 | 1 # SliTaz package receipt v2. |
pascal@11226 | 2 |
pascal@11226 | 3 PACKAGE="protobuf" |
al@19741 | 4 VERSION="3.3.0" |
pascal@11226 | 5 CATEGORY="network" |
al@19741 | 6 SHORT_DESC="Protocol Buffers - Google's data interchange format" |
pascal@11226 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15375 | 8 LICENSE="BSD" |
al@19741 | 9 WEB_SITE="https://developers.google.com/protocol-buffers/" |
al@19741 | 10 |
al@19741 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@19741 | 12 WGET_URL="https://github.com/google/protobuf/archive/v$VERSION.tar.gz" |
al@19741 | 13 |
al@19741 | 14 BUILD_DEPENDS="curl automake libtool zlib-dev python-dev setuptools" |
al@19741 | 15 SPLIT="protobuf-python protobuf-dev" |
pascal@11226 | 16 |
pascal@11226 | 17 # Rules to configure and make the package. |
pascal@11226 | 18 compile_rules() |
pascal@11226 | 19 { |
al@19741 | 20 ./autogen.sh && |
al@19741 | 21 ./configure $CONFIGURE_ARGS && make && make install || exit 1 |
al@19741 | 22 |
al@19741 | 23 cd $src/python |
al@19741 | 24 python setup.py install --prefix=/usr --root $DESTDIR |
pascal@11226 | 25 } |
pascal@11226 | 26 |
pascal@11226 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11226 | 28 genpkg_rules() |
pascal@11226 | 29 { |
al@19741 | 30 case $PACKAGE in |
al@19741 | 31 protobuf) |
al@19741 | 32 copy bin/ *.so* |
al@19741 | 33 DEPENDS="zlib" |
al@19741 | 34 ;; |
al@19741 | 35 protobuf-python) |
al@19741 | 36 copy python2.7/ |
al@19741 | 37 CAT="network|Python bindings" |
al@19741 | 38 DEPENDS="python protobuf" |
al@19741 | 39 ;; |
al@19741 | 40 *-dev) copy @dev;; |
al@19741 | 41 esac |
pascal@11226 | 42 } |