wok-next view protobuf/receipt @ rev 19741

Many random packages update/upgrade.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Jun 05 16:48:55 2017 +0300 (2017-06-05)
parents 51a1ebbda768
children 6c73b944e8dd
line source
1 # SliTaz package receipt v2.
3 PACKAGE="protobuf"
4 VERSION="3.3.0"
5 CATEGORY="network"
6 SHORT_DESC="Protocol Buffers - Google's data interchange format"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://developers.google.com/protocol-buffers/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/google/protobuf/archive/v$VERSION.tar.gz"
14 BUILD_DEPENDS="curl automake libtool zlib-dev python-dev setuptools"
15 SPLIT="protobuf-python protobuf-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 ./autogen.sh &&
21 ./configure $CONFIGURE_ARGS && make && make install || exit 1
23 cd $src/python
24 python setup.py install --prefix=/usr --root $DESTDIR
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 case $PACKAGE in
31 protobuf)
32 copy bin/ *.so*
33 DEPENDS="zlib"
34 ;;
35 protobuf-python)
36 copy python2.7/
37 CAT="network|Python bindings"
38 DEPENDS="python protobuf"
39 ;;
40 *-dev) copy @dev;;
41 esac
42 }