summaryrefslogtreecommitdiffstats
path: root/plugins/package-plugin.sh.in
blob: 23d7b34668fa313f3dff6d867e978e7c8646607e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
PACKAGE_CHANGELOG="-D CPACK_RPM_CHANGELOG_FILE=${PLUGIN_CHANGELOG}"
PACKAGE_FILE_NAME="-D CPACK_PACKAGE_FILE_NAME=uca-plugin-${UCA_CAMERA_NAME}-${PLUGIN_VERSION}-${PLUGIN_REVISION}"
PACKAGE_NAME="-D CPACK_PACKAGE_NAME=uca-plugin-${UCA_CAMERA_NAME}"
PACKAGE_DEPENDENCIES="-D CPACK_RPM_PACKAGE_REQUIRES=\"${PLUGIN_REQUIRES}\""
PACKAGE_DESCRIPTION="-D CPACK_RPM_PACKAGE_DESCRIPTION=\"${PLUGIN_DESCRIPTION}\""
PACKAGE_RELEASE="-D CPACK_RPM_PACKAGE_RELEASE=${PLUGIN_REVISION}"
PACKAGE_SUMMARY="-D CPACK_RPM_PACKAGE_SUMMARY=\"${PLUGIN_SUMMARY}\""
PACKAGE_VENDOR="-D CPACK_RPM_PACKAGE_VENDOR=\"${PLUGIN_VENDOR}\""
PACKAGE_VERSION="-D CPACK_PACKAGE_VERSION=${PLUGIN_VERSION}"

FLAGS=" \
       $PACKAGE_CHANGELOG \
       $PACKAGE_DEPENDENCIES \
       $PACKAGE_DESCRIPTION \
       $PACKAGE_FILE_NAME \
       $PACKAGE_NAME \
       $PACKAGE_RELEASE \
       $PACKAGE_SUMMARY \
       $PACKAGE_VENDOR \
       $PACKAGE_VERSION \
       "

cmd="cpack -D CPACK_INSTALL_CMAKE_PROJECTS=\"${CMAKE_CURRENT_BINARY_DIR}/;Project;${UCA_CAMERA_NAME};/\" $FLAGS"

eval $cmd