Skip to content

Package

Jesús Arroyo Torrens edited this page May 17, 2016 · 14 revisions

Package Horus OpenCV

Clone repository

git clone https://github.com/bqlabs/opencv.git
cd opencv

Set version to env

export VERSION=2.4.9.1.3

Package tarball

git checkout master
tar -czf ../opencv_${VERSION}.orig.tar.gz --exclude='.git*' .

Generate deb

git checkout debian

Edit debian/changelog with trusty:

sed -i "s/opencv (${VERSION}) unstable/opencv (${VERSION}-trusty1) trusty/;" debian/changelog 
Build deb with orig
debuild -S -sa
Build the rest of debs without orig
export RELEASES="vivid wily xenial";
for RELEASE in $RELEASES;
do
  git checkout -- debian/changelog;
  sed -i "s/opencv (${VERSION}) unstable/opencv (${VERSION}-${RELEASE}1) ${RELEASE}/;" debian/changelog;
  debuild -S -sd;
done

Upload to launchpad

export RELEASES="trusty vivid wily xenial";
for RELEASE in $RELEASES;
do
  dput -f ppa:bqlabs/horus-dev ../opencv_${VERSION}-${RELEASE}1_source.changes;
done
Clone this wiki locally