You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
955 B

  1. #!/bin/bash -ex
  2. # we should always set proper ownership before exiting, otherwise
  3. # the created packages will have root:root ownership and we'll be unable
  4. # to delete them from our host.
  5. trap 'chown -R --reference /usr/bin/create-rpm.sh /out/' EXIT
  6. # the source directory is mounted read-only to prevent issues where the build
  7. # could alter the source; we should copy it somewhere inside the container
  8. cd /source/out
  9. ls -alh
  10. tree
  11. INSTALL_TOP=/package
  12. mkdir -p ${INSTALL_TOP}/lib/pEp
  13. mkdir -p ${INSTALL_TOP}/include/pEp
  14. mkdir -p ${INSTALL_TOP}/share
  15. cp -ar lib/libpEpEngine.so ${INSTALL_TOP}/lib/.
  16. cp -ar lib/pEp/libetpan* ${INSTALL_TOP}/lib/pEp/..
  17. cp -ar include/pEp/* ${INSTALL_TOP}/include/pEp/.
  18. cp -ar share/* ${INSTALL_TOP}/share/.
  19. cd /out
  20. #this would be the no-signature command line
  21. fpm -t rpm -s dir \
  22. -n ${PKG_NAME} \
  23. --version ${PKG_VERSION} \
  24. --description "${PKG_DESCRIPTION}" \
  25. --depends ${PKG_DEPENDS} \
  26. -C ${PKG_INSTALL_PATH_STRING}