wok-next view protobuf/receipt @ rev 20223
luufs, lxpolkit, mcrypt: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Nov 05 17:17:00 2017 +0100 (2017-11-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 }