From d1974d95fb962a3117590e264acb2ada68efcc11 Mon Sep 17 00:00:00 2001 From: Stefan Koch Date: Mon, 16 Oct 2017 14:46:00 +0200 Subject: [PATCH] Build debain package using makd - Add makd submodule * makd ()...v2.0.1(d735c1d) (1 commits) > Fix calls to `find` --- .gitmodules | 3 +++ makd | 1 + makefile | 5 +++++ pkg/dfmt.pkg | 31 +++++++++++++++++++++++++++++++ 4 files changed, 40 insertions(+) create mode 160000 makd create mode 100644 pkg/dfmt.pkg diff --git a/.gitmodules b/.gitmodules index 69054e2..fd4c55f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "libdparse"] path = libdparse url = https://github.com/dlang-community/libdparse.git +[submodule "makd"] + path = makd + url = https://github.com/sociomantic-tsunami/makd diff --git a/makd b/makd new file mode 160000 index 0000000..d735c1d --- /dev/null +++ b/makd @@ -0,0 +1 @@ +Subproject commit d735c1df67399693f699f8315418173a55de5313 diff --git a/makefile b/makefile index ed78e32..e2a8335 100644 --- a/makefile +++ b/makefile @@ -38,3 +38,8 @@ bin/dfmt: views/VERSION $(SRC) debug: views/VERSION $(SRC) $(DC) $(DMD_DEBUG_FLAGS) $(filter %.d,$^) -ofbin/dfmt +pkg: dmd + $(MAKE) -f makd/Makd.mak pkg + +clean: + $(RM) bin/dfmt diff --git a/pkg/dfmt.pkg b/pkg/dfmt.pkg new file mode 100644 index 0000000..05390e5 --- /dev/null +++ b/pkg/dfmt.pkg @@ -0,0 +1,31 @@ +# dfmt packaging configuration +# ============================ + +dfmt_bindir='bin' + +#------------------------------------------------------------------------------- +# Define the keyword arguments to pass to fpm (via the OPTS dict) +#------------------------------------------------------------------------------- + +OPTS.update( + name = "dfmt", + url = 'https://github.com/dlang-community/dfmt', + maintainer = 'Stefan Koch ', + vendor = 'Sociomantic Labs GmbH', + provides = "dfmt", + description = '''\ +D source code formatter +''', + depends = FUN.autodeps('dfmt', path=dfmt_bindir), +) + +#------------------------------------------------------------------------------- +# Define the positional arguments to pass to fpm (via the ARGS list) +#------------------------------------------------------------------------------- + +ARGS.extend(FUN.mapfiles(dfmt_bindir, '/usr/bin', 'dfmt')) +ARGS.extend([ + 'bash-completion/completion/dfmt=/usr/share/bash-completion/completion/dfmt' +]) + +# vim: set ft=python tw=80 :