@ -8,15 +8,15 @@
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := libsearpc
PKG_VERSION := 3.1 .0
PKG_RELEASE = 2
PKG_VERSION := 3.2 .0
PKG_RELEASE := 1
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := https://codeload.github.com/haiwen/libsearpc/tar.gz/v$( PKG_VERSION) ?
PKG_HASH := cbd86d3c37b54ca2060ca537a07940fe3e98498abf345b2f3e1cec488230231a
PKG_MAINTAINER := Alexandru Ardelean <ardeleanalex@gmail.com>
PKG_HASH := c479d85e405674c3450eac040abe143af5a9fafe7f1b74926e2a05280ab5420e
PKG_LICENSE := GPL-3.0
PKG_MAINTAINER := Alexandru Ardelean <ardeleanalex@gmail.com>, Jeffery To <jeffery.to@gmail.com>
PKG_LICENSE := Apache-2.0
PKG_LICENSE_FILES := LICENSE.txt
PKG_FIXUP := autoreconf
@ -26,41 +26,70 @@ PKG_INSTALL:=1
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e $( INCLUDE_DIR ) / n l s . m k
i n c l u d e . . / . . / l a n g / p y t h o n / p y t h o n - p a c k a g e . m k
i n c l u d e . . / . . / l a n g / p y t h o n / p y t h o n 3 - p a c k a g e . m k
d e f i n e P a c k a g e / l i b s e a r p c
SECTION:= libs
CATEGORY:= Libraries
TITLE:= Seafile RPC Library
URL:= https://seafile.com
DEPENDS:= +glib2 +jansson +pyth on $( ICONV_DEPENDS)
SECTION:= libs
CATEGORY:= Libraries
TITLE:= Seafile RPC Library
URL:= https://seafile.com
DEPENDS:= +glib2 +jansson $( ICONV_DEPENDS)
e n d e f
d e f i n e P a c k a g e / l i b s e a r p c / d e s c r i p t i o n
Searpc is a simple C language RPC framework based on GObject system.
Searpc handles the serialization/deserialization part of RPC,
the transport part is left to users.
Searpc is a simple C language RPC framework based on GObject system.
Searpc handles the serialization/deserialization part of RPC, the
transport part is left to users.
e n d e f
CONFIGURE_ARGS += --enable-compile-demo= no \
--disable-server-pkg
d e f i n e P a c k a g e / p y t h o n 3 - s e a r p c
SECTION:= lang
CATEGORY:= Languages
SUBMENU:= Python
TITLE:= Python bindings for Searpc
DEPENDS:= +libsearpc +python3-light +python3-logging
VARIANT:= python3
e n d e f
d e f i n e P a c k a g e / p y t h o n 3 - s e a r p c / d e s c r i p t i o n
$( call Package /libsearpc /description )
This package contains the Python bindings for Searpc.
e n d e f
TARGET_LDFLAGS += -Wl,-rpath-link= $( STAGING_DIR) /usr/lib -liconv
CONFIGURE_ARGS += \
--disable-compile-demo \
--disable-server-pkg
d e f i n e B u i l d / I n s t a l l D e v
$( INSTALL_DIR) $( 1) /usr/{ bin,include}
$( INSTALL_DIR) $( 1) /usr/lib/pkgconfig
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libsearpc.so* $( 1) /usr/lib/
$( CP) $( PKG_INSTALL_DIR) /usr/include/searpc* $( 1) /usr/include/
$( CP) $( PKG_INSTALL_DIR) /usr/lib/pkgconfig/libsearpc.pc $( 1) /usr/lib/pkgconfig/
$( CP) $( PKG_INSTALL_DIR) /usr/bin/searpc-codegen.py $( 1) /usr/bin/
$( INSTALL_DATA ) $( PKG_INSTALL_DIR) /usr/include/*.h $( 1) /usr/include/
$( INSTALL_DATA ) $( PKG_INSTALL_DIR) /usr/lib/pkgconfig/libsearpc.pc $( 1) /usr/lib/pkgconfig/
$( INSTALL_BIN ) $( PKG_INSTALL_DIR) /usr/bin/searpc-codegen.py $( 1) /usr/bin/
e n d e f
# Include Python 2 bindings in this package to maintain compatibility with previous versions
d e f i n e P a c k a g e / l i b s e a r p c / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( INSTALL_DIR) $( 1) $( PYTHON_PKG_DIR)
$( INSTALL_DIR) $( 1) $( PYTHON_PKG_DIR) /pysearpc
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libsearpc.so* $( 1) /usr/lib/
$( CP) $( PKG_INSTALL_DIR) $( PYTHON_PKG_DIR) /pysearpc $( 1) $( PYTHON_PKG_DIR)
find $( 1) -name "*\.pyc" -o -name "*\.pyo" | xargs rm -f
$( INSTALL_DATA) $( PKG_BUILD_DIR) /pysearpc/*.py $( 1) $( PYTHON_PKG_DIR) /pysearpc/
rm - f $( 1) $( PYTHON_PKG_DIR) /pysearpc/{ pygencode,test_pysearpc} .py
e n d e f
d e f i n e P y 3 B u i l d / C o m p i l e
rm -rf $( PKG_INSTALL_DIR) $( PYTHON3_PKG_DIR) /pysearpc
$( INSTALL_DIR) $( PKG_INSTALL_DIR) $( PYTHON3_PKG_DIR) /pysearpc
$( INSTALL_DATA) $( PKG_BUILD_DIR) /pysearpc/*.py $( PKG_INSTALL_DIR) $( PYTHON3_PKG_DIR) /pysearpc/
rm -f $( PKG_INSTALL_DIR) $( PYTHON3_PKG_DIR) /pysearpc/{ pygencode,test_pysearpc} .py
e n d e f
Py3Package/python3-searpc/install : =:
$( eval $ ( call BuildPackage ,libsearpc ) )
$( eval $ ( call Py 3Package ,python 3-searpc ) )
$( eval $ ( call BuildPackage ,python 3-searpc ) )
$( eval $ ( call BuildPackage ,python 3-searpc -src ) )