Skip to content

Commit

Permalink
Update packaging infos
Browse files Browse the repository at this point in the history
  • Loading branch information
epsilonrt committed Oct 5, 2018
1 parent 5399ff3 commit 5c5941a
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 13 deletions.
2 changes: 1 addition & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* Pascal JEAN <epsilonrt <--//\\--> gmail.com>
* Pascal JEAN <pascal.jean <--//\\--> piduino.org>
22 changes: 15 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ cmake_minimum_required (VERSION 3.5 FATAL_ERROR)

project (PIDUINO)
set (PROJECT_DESCRIPTION "C++ library for Pi boards with Arduino API")
set (PROJECT_DESCRIPTION_TEXT "\
PiDuino is a C ++ library for Pi boards that allows the use of I/O like GPIO,\n\
I2C, SPI, UART ... with an API as close as possible to the Arduino language.\n\
The description of Pi cards uses a stored 'Object' model in a database that \n\
allows to add new models of boards easily.\n\
Supported SoC models are AllWinner H-Series and Broadcom BCM2708 through 2710."
)

string(TOLOWER ${CMAKE_PROJECT_NAME} PROJECT_NAME)

# Appends the cmake/modules path to MAKE_MODULE_PATH variable.
Expand Down Expand Up @@ -169,11 +177,11 @@ if (PIDUINO_WITH_DOXYGEN_DOC)
endif()

### Packages generation --------------------------------------------------------
set(CPACK_PACKAGE_VERSION "${PIDUINO_VERSION_MAJOR}.${PIDUINO_VERSION_MINOR}-${PIDUINO_VERSION_PATCH}")
set(CPACK_PACKAGE_VERSION "${PIDUINO_VERSION_MAJOR}.${PIDUINO_VERSION_MINOR}.${PIDUINO_VERSION_PATCH}")
set(CPACK_PACKAGE_VERSION_MAJOR "${PIDUINO_VERSION_MAJOR}")
set(CPACK_PACKAGE_VERSION_MINOR "${PIDUINO_VERSION_MINOR}")
set(CPACK_PACKAGE_VERSION_PATCH "${PIDUINO_VERSION_PATCH}")
set(CPACK_PACKAGE_CONTACT "Pascal JEAN <[email protected]>")
set(CPACK_PACKAGE_CONTACT "Pascal JEAN <[email protected]>")
set(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/COPYING.LESSER")

set(CPACK_GENERATOR "DEB")
Expand Down Expand Up @@ -248,28 +256,28 @@ if (CPACK_GENERATOR STREQUAL "DEB")
endif (dpkg_query)

message(STATUS "Debian architecture ${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}")

set(CPACK_DEBIAN_LIB_PACKAGE_NAME "libpiduino")
set(CPACK_COMPONENT_LIB_DESCRIPTION "${CPACK_DEBIAN_LIB_PACKAGE_NAME} - ${PROJECT_DESCRIPTION} (library)")
set(CPACK_COMPONENT_LIB_DESCRIPTION "${CPACK_DEBIAN_LIB_PACKAGE_NAME} - ${PROJECT_DESCRIPTION} (library)\n${PROJECT_DESCRIPTION_TEXT}\n This package provides the shared libriairie itself.")
set(CPACK_DEBIAN_LIB_FILE_NAME "lib${PROJECT_NAME}_${CPACK_PACKAGE_VERSION}_${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}.deb")
set(CPACK_DEBIAN_LIB_PACKAGE_DEPENDS "libc6,libgcc1,libstdc++6,libcppdb0,libcppdb-sqlite3-0,libudev1")
set(CPACK_DEBIAN_LIB_PACKAGE_SECTION "libs")

set(CPACK_DEBIAN_DEV_PACKAGE_NAME "libpiduino-dev")
set(CPACK_COMPONENT_DEV_DESCRIPTION "${CPACK_DEBIAN_LIB_PACKAGE_NAME} - ${PROJECT_DESCRIPTION} (development files)")
set(CPACK_COMPONENT_DEV_DESCRIPTION "${CPACK_DEBIAN_LIB_PACKAGE_NAME} - ${PROJECT_DESCRIPTION} (development files)\n${PROJECT_DESCRIPTION_TEXT}\n This package provides the development files.")
set(CPACK_DEBIAN_DEV_FILE_NAME "lib${PROJECT_NAME}-dev_${CPACK_PACKAGE_VERSION}_${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}.deb")
set(CPACK_DEBIAN_DEV_PACKAGE_DEPENDS "${CPACK_DEBIAN_LIB_PACKAGE_NAME} (= ${CPACK_PACKAGE_VERSION}),pkg-config,git-core")
set(CPACK_DEBIAN_DEV_PACKAGE_SECTION "libdevel")
#set(CPACK_PACKAGE_DESCRIPTION_FILE "${PIDUINO_SRC_DIR}/doc/README-deb.md")

set(CPACK_DEBIAN_DOC_PACKAGE_NAME "libpiduino-doc")
set(CPACK_COMPONENT_DOC_DESCRIPTION "${CPACK_DEBIAN_LIB_PACKAGE_NAME} - ${PROJECT_DESCRIPTION} (documentation)")
set(CPACK_COMPONENT_DOC_DESCRIPTION "${CPACK_DEBIAN_LIB_PACKAGE_NAME} - ${PROJECT_DESCRIPTION} (documentation)\n${PROJECT_DESCRIPTION_TEXT}\n This package provides the API documentation.")
set(CPACK_DEBIAN_DOC_FILE_NAME "lib${PROJECT_NAME}-doc_${CPACK_PACKAGE_VERSION}_${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}.deb")
set(CPACK_DEBIAN_DOC_PACKAGE_DEPENDS "${CPACK_DEBIAN_DEV_PACKAGE_NAME} (= ${CPACK_PACKAGE_VERSION})")
set(CPACK_DEBIAN_DOC_PACKAGE_SECTION "libdevel")

set(CPACK_DEBIAN_UTILS_PACKAGE_NAME "piduino-utils")
set(CPACK_COMPONENT_UTILS_DESCRIPTION "${CPACK_DEBIAN_LIB_PACKAGE_NAME} - ${PROJECT_DESCRIPTION} (utilities)")
set(CPACK_COMPONENT_UTILS_DESCRIPTION "${CPACK_DEBIAN_LIB_PACKAGE_NAME} - ${PROJECT_DESCRIPTION} (utilities)\n${PROJECT_DESCRIPTION_TEXT}\n This package provides the command-line utilities.")
set(CPACK_DEBIAN_UTILS_FILE_NAME "${PROJECT_NAME}-utils_${CPACK_PACKAGE_VERSION}_${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}.deb")
set(CPACK_DEBIAN_UTILS_PACKAGE_DEPENDS "${CPACK_DEBIAN_LIB_PACKAGE_NAME} (= ${CPACK_PACKAGE_VERSION})")
set(CPACK_DEBIAN_UTILS_PACKAGE_SECTION "utils")
Expand Down
2 changes: 1 addition & 1 deletion include/piduino/arduino/Arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Modified 2018 by Pascal JEAN ([email protected]) for piduino library
Modified 2018 by Pascal JEAN ([email protected]) for piduino library
*/
#ifndef Arduino_h
#define Arduino_h
Expand Down
2 changes: 1 addition & 1 deletion include/piduino/arduino/HardwareSerial.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
Modified 28 September 2010 by Mark Sproul
Modified 14 August 2012 by Alarus
Modified 3 December 2013 by Matthijs Kooijman
Modified 2018 by Pascal JEAN ([email protected]) for piduino library
Modified 2018 by Pascal JEAN ([email protected]) for piduino library
*/

#ifndef HardwareSerial_h
Expand Down
2 changes: 1 addition & 1 deletion include/piduino/arduino/Print.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Modified 2018 by Pascal JEAN ([email protected]) for piduino library
Modified 2018 by Pascal JEAN ([email protected]) for piduino library
*/

#ifndef Print_h
Expand Down
2 changes: 1 addition & 1 deletion src/arduino/Print.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Modified 23 November 2006 by David A. Mellis
Modified 2018 by Pascal JEAN ([email protected]) for piduino library
Modified 2018 by Pascal JEAN ([email protected]) for piduino library
*/

#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion src/arduino/i2c/Wire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Modified 2012 by Todd Krein ([email protected]) to implement repeated starts
Modified 2018 by Pascal JEAN ([email protected]) for piduino library
Modified 2018 by Pascal JEAN ([email protected]) for piduino library
*/
#include <Wire.h>

Expand Down

0 comments on commit 5c5941a

Please sign in to comment.