Skip to content

Commit

Permalink
Added script to create .deb package
Browse files Browse the repository at this point in the history
This adds a script which can create a .deb package using checkinstall.
  • Loading branch information
julianoes committed Oct 23, 2017
1 parent 08ec526 commit a17b3b9
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions create_deb.sh
@@ -0,0 +1,26 @@
#!/bin/bash

set -e

# This creates a version such as "v1.2.3-5-g123abc".
version=`git describe --always --tags`
# We want to extract 1.2.3 from it.
version=`echo $version | sed 's/v\([0-9]*\.[0-9]*\.[0-9]*\).*$/\1/'`

make clean
make INSTALL_PREFIX=/usr BUILD_TYPE=Release

checkinstall \
--maintainer="Julian Oes \<julian@oes.ch\>" \
--pkgname="dronecore-dev" \
--pkgversion="$version" \
--pkgarch="amd64" \
--pkgrelease=1 \
--pkglicense="BSD-3-clause" \
--requires="libcurl4-openssl-dev" \
--provides="dronecore-dev" \
--backup=no \
--deldoc=yes \
--deldesc=yes \
--default=yes

0 comments on commit a17b3b9

Please sign in to comment.