| URL=https://github.com/MarvellEmbeddedProcessors/marvell-vpp.git |
| ARCH=$(dpkg --print-architecture) |
| TMP_DIR=$(mktemp -d -p $PWD) |
| trap '' INT TERM EXIT ERR |
| echo "Cleaning up ${TMP_DIR}" |
| trap "err_handler" INT TERM EXIT ERR |
| INSTALL_PREFIX=/opt/vpp/external/$(uname -m) |
| VER=0.0.$(git -C ${SRC} rev-list --count HEAD) |
| cmake -S ${SRC} -B ${BUILD} |
| cmake --build ${BUILD} --parallel |
| cmake --install ${BUILD} --prefix ${STAGE}${INSTALL_PREFIX} |
| cat > ${STAGE}/DEBIAN/control << __EOF__ |
| Maintainer: vpp-dev <vpp-dev@fd.io> |
| Installed-Size: $(du -ks ${STAGE}|cut -f 1) |
| Description: Marvell Octeon ROC library for VPP |
| See https://github.com/MarvellEmbeddedProcessors/marvell-vpp |
| DEB=${PKG}_${VER}_${ARCH}.deb |
| dpkg-deb -b ${STAGE} ${DEB} |