ldc-developers/ldc — pull request #580 by Dicebot (2014-02-12 14:13:15+00:00)
Title: Add CPack configuration for debian packages

Part of #573

Allows to automatically generate .deb based on current generated `install`
target. Some of package settings are taken from exiting CMake variables, some
from host system.

Dependencies currently are not set - what oldest libc version you want to support? LDC will need to be built on that system, same as DMD .deb are built on some old Debian.

One can test it via
```
git clone https://github.com/Dicebot/ldc
cd ldc; git checkout dev-package; cd ..
mkdir build; cd build
cmake ../ldc # + any normal cmake options
make
cpack -G DEB # will place .deb in same folder
```

Updating `ldc-scripts` will be done after this is merged