Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds a script which can create a .deb package using checkinstall.
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|