ldc-developers / ldc2.snap

Snap package definition for LDC, the LLVM-based D compiler
11 stars 4 forks source link

Explicitly manage license file to avoid snapcraft 3 deprecation #72

Closed WebDrake closed 5 years ago

WebDrake commented 5 years ago

Placing license.txt in the snap folder was always a rather flaky way to get it in the package, and snapcraft 3 does not like arbitrary files being placed here. This patch therefore creates a new part which places the license file in the $SNAP/doc directory of the generated package.

The second patch adds a missing reference to the ldc-jit-rt library, bringing this up to date with the upstream LICENSE file from LDC 1.10.