Skip to content

Commit

Permalink
Tidy up and packaging fixes
Browse files Browse the repository at this point in the history
Added a dbg package
  • Loading branch information
parnham committed Jul 27, 2022
1 parent f30fdba commit e2089fd
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 34 deletions.
8 changes: 4 additions & 4 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@ deps:

build:
FROM +deps
COPY --dir include packages src premake5.lua strip .
COPY --dir include packages src premake5.lua .
RUN premake5 gmake && make -j$(nproc) libniven

package:
FROM +build
ARG DISTRIBUTION=bionic

RUN cd packages && dpkg-buildpackage -b -uc -us
SAVE ARTIFACT packages/libniven-dev_*.deb libniven-dev.deb
SAVE ARTIFACT packages/libniven0_*.deb libniven0.deb
SAVE ARTIFACT libniven*.deb AS LOCAL build/
# SAVE ARTIFACT libniven-dev_*.deb libniven-dev.deb
# SAVE ARTIFACT libniven0_*.deb libniven0.deb
SAVE ARTIFACT libniven*.*deb AS LOCAL build/

all:
BUILD --platform=linux/amd64 --platform=linux/arm64 +package --DISTRIBUTION=bionic
Expand Down
7 changes: 7 additions & 0 deletions packages/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
libniven0 (0.0.16) unstable; urgency=medium

* Tidy up and packaging fixes
* Added a dbg package

-- Dan Parnham <[email protected]> Wed, 27 Jul 2022 12:58:26 +0100

libniven0 (0.0.15) unstable; urgency=medium

* Patched to build on ubuntu 22.04
Expand Down
10 changes: 10 additions & 0 deletions packages/debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,13 @@ Depends: ${misc:Depends}, libniven0 (= ${binary:Version}), libmicrohttpd-dev
Description: C++17 REST services made easy
Allows simple construction of self-hosted REST
services using lambdas and fluent configuration.

Package: libniven-dbg
Section: debug
Priority: extra
Architecture: any
Depends: libniven0 (= ${binary:Version})
Description: C++17 REST services made easy
Allows simple construction of self-hosted REST
services using lambdas and fluent configuration.
This package contains the debug symbols.
2 changes: 1 addition & 1 deletion packages/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ binary:
dh_installchangelogs
dh_compress
dh_fixperms
dh_strip
dh_strip --dbg-package=libniven-dbg
dh_makeshlibs
dh_shlibdeps
dh_installdeb
Expand Down
2 changes: 1 addition & 1 deletion packages/update
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ VERSION[2]=`expr ${VERSION[2]} + 1`

echo "${VERSION[*]}" > version

dch -v "${VERSION[*]}" --distribution=unstable
dch -Mv "${VERSION[*]}" --distribution=unstable
2 changes: 1 addition & 1 deletion packages/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.15
0.0.16
4 changes: 2 additions & 2 deletions premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ solution "niven"
links { "microhttpd", "gcrypt", "stdc++fs" }
linkoptions { "-Wl,-soname,libniven.so.0" }
files { "include/niven/**h", "src/niven/**.cpp" }
configuration "linux"
postbuildcommands "./strip lib/libniven.so"
-- configuration "linux"
-- postbuildcommands "./strip lib/libniven.so"

project "test"
kind "ConsoleApp"
Expand Down
25 changes: 0 additions & 25 deletions strip

This file was deleted.

0 comments on commit e2089fd

Please sign in to comment.