Skip to content

Commit 28247b4

Browse files
committed
feat(build): add script to create cppnet-lib debian package
1 parent 9430fb4 commit 28247b4

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ build/*
55
!build/get_libs.sh
66
model/
77
models/
8-
clients/
8+
clients/
9+
tools/build-cpp-netlib/

tools/build-cpp-netlib-pkg.sh

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
3+
set -x
4+
set -o pipefail
5+
6+
export DEB_BUILD_OPTIONS=nocheck
7+
8+
9+
pkg_name="cpp-netlib"
10+
pkg_version="0.11.2+dfsg1"
11+
deb_version="2"
12+
13+
mkdir -p build-${pkg_name}
14+
cd build-${pkg_name}
15+
16+
rm -rf ${pkg_name}-${pkg_version}
17+
18+
dget http://archive.ubuntu.com/ubuntu/pool/universe/${pkg_name:0:1}/${pkg_name}/${pkg_name}_${pkg_version}-${deb_version}.dsc
19+
dpkg-source -x ${pkg_name}_${pkg_version}-${deb_version}.dsc
20+
cd ${pkg_name}-${pkg_version}
21+
sed -i -e '/dh_auto_configure --/s/$/ -DCPP-NETLIB_BUILD_TESTS:BOOL=OFF/g' debian/rules
22+
debuild -us

0 commit comments

Comments
 (0)