Skip to content

Commit

Permalink
feat(build): add script to create cppnet-lib debian package
Browse files Browse the repository at this point in the history
  • Loading branch information
sileht committed Oct 5, 2020
1 parent 9430fb4 commit 28247b4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ build/*
!build/get_libs.sh
model/
models/
clients/
clients/
tools/build-cpp-netlib/
22 changes: 22 additions & 0 deletions tools/build-cpp-netlib-pkg.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

set -x
set -o pipefail

export DEB_BUILD_OPTIONS=nocheck


pkg_name="cpp-netlib"
pkg_version="0.11.2+dfsg1"
deb_version="2"

mkdir -p build-${pkg_name}
cd build-${pkg_name}

rm -rf ${pkg_name}-${pkg_version}

dget http://archive.ubuntu.com/ubuntu/pool/universe/${pkg_name:0:1}/${pkg_name}/${pkg_name}_${pkg_version}-${deb_version}.dsc
dpkg-source -x ${pkg_name}_${pkg_version}-${deb_version}.dsc
cd ${pkg_name}-${pkg_version}
sed -i -e '/dh_auto_configure --/s/$/ -DCPP-NETLIB_BUILD_TESTS:BOOL=OFF/g' debian/rules
debuild -us

0 comments on commit 28247b4

Please sign in to comment.