Skip to content

Commit

Permalink
Improve debian packaging.
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitri committed Sep 26, 2014
1 parent a328f5d commit 20edebe
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion debian/copyright
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ License: MIT

Files: web/highcharts/*
Copyright: highslide-software
License:
License: CC-BY-NC
Creative Commons Attribution-NonCommercial 3.0 License.
.
THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE
Expand Down
14 changes: 13 additions & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,23 @@
PKGVERS = $(shell dpkg-parsechangelog | awk -F '[:-]' '/^Version:/ { print substr($$2, 2) }')
EXCLUDE = --exclude-vcs --exclude=debian --exclude=build --exclude=.vagrant

BITS = $(shell dpkg-architecture -qDEB_BUILD_ARCH_BITS)
ifeq ($(BITS),32)
SIZE=1024
else
SIZE=4096
endif

# buildd provides a build environment where $HOME is not writable, but the
# CL compilers here will need to fill-in a per-user cache
export HOME = $(CURDIR)/debian/home

orig: clean
cd .. && tar czf pgcharts_$(PKGVERS).orig.tar.gz $(EXCLUDE) pgcharts

override_dh_auto_build:
mkdir -p build/bin
mkdir -p $(HOME)
buildapp --logfile /tmp/pgcharts-build.log \
--require sb-posix \
--load /usr/share/common-lisp/source/cl-asdf/build/asdf.lisp \
Expand All @@ -26,7 +38,7 @@ override_dh_auto_build:
--load src/image.lisp \
--load debian/settings.lisp \
--entry pgcharts:main \
--dynamic-space-size 4096 \
--dynamic-space-size $(SIZE) \
--compress-core \
--output build/bin/pgcharts

Expand Down

0 comments on commit 20edebe

Please sign in to comment.