Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provided Debian Packaging files #108

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.swp
*.pyc
*.obj
*.exe
Expand All @@ -6,3 +7,8 @@ doc/html/
doc-publish/
test/cxxtest/*.cc
test/build
debian/.debhelper/
debian/better-enums0-dev.substvars
debian/better-enums0-dev/
debian/debhelper-build-stamp
debian/files
20 changes: 20 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
prefix = /usr
includedir = $(prefix)/include
libdir = $(prefix)/lib/$(shell dpkg-architecture | grep DEB_TARGET_MULTIARCH | awk -F= '{print $$2}')

build:

install: enum.h better-enums.pc
install -D -m 444 enum.h $(DESTDIR)$(includedir)/better-enums/enum.h
install -D -m 644 better-enums.pc $(DESTDIR)$(libdir)/pkgconfig/better-enums.pc
dpkg-parsechangelog | grep '^Version: ' >> $(DESTDIR)$(libdir)/pkgconfig/better-enums.pc

clean:
rm -rf $(DESTDIR)

deb:
dpkg-buildpackage -us -uc -b

.PHONY: build install clean deb

# vi: ts=8:sw=8:noai:noexpandtab:filetype=make
9 changes: 9 additions & 0 deletions better-enums.pc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
prefix=/usr
libdir=${prefix}/lib
includedir=${prefix}/include/better-enums

Name: better_enums
Description: Reflective compile-time enum library with clean syntax, in a single header file, and without dependencies.
Requires:
Libs:
Cflags: -I${includedir}
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
better-enums (0.11.3) stable; urgency=low

* Initial Debian package release

-- Daikin ADC Controls Dev <[email protected]> Tue, 06 Sep 2022 09:06:05 -0500
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10
17 changes: 17 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Source: better-enums
Section: libdevel
Priority: optional
Maintainer: Daikin ADC Controls Dev <[email protected]>
Build-Depends: debhelper (>= 10)
Standards-Version: 4.1.2

Package: better-enums0-dev
Provides: better-enums-dev
Conflicts: better-enums-dev
Section: libdevel
Architecture: any
Depends: ${misc:Depends}
Description: Files needed to develop against better-enums
This package contains include files needed to develop applications
with better-enums.

7 changes: 7 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: better-enums

Files: *
Copyright: 2012-2021, Anton Bachin

License: BSD 2-Clause "Simplified" License
1 change: 1 addition & 0 deletions debian/docs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
README.md
1 change: 1 addition & 0 deletions debian/examples
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
example/101-special-values.cc example/103-bitset.cc example/104-quine.cc example/105-c++17-reflection.cc example/1-hello-world.cc example/2-conversions.cc example/3-iterate.cc example/4-switch.cc example/5-map.cc example/6-iostreams.cc example/7-safety.cc example/8-representation.cc example/9-constexpr.cc example/Makefile
9 changes: 9 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/make -f

export DH_VERBOSE=1

VERSION := $(shell dpkg-parsechangelog | grep '^Version: ' | awk '{print $$2}')

%:
dh $@