diff --git a/pkg.info b/pkg.info index 57c2911..ce38bb8 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,7 @@ name: nettle description: Low-level cryptographic library version: 3.9.1 -revision: 2 +revision: 3 url: https://www.lysator.liu.se/~nisse/nettle license: LGPL3-or-later or GPL2-or-later architecture: any diff --git a/source.sh b/source.sh index 9b76a6a..eeb4c93 100644 --- a/source.sh +++ b/source.sh @@ -29,7 +29,12 @@ check() { # This function is used to move the compiled files into the output directory package() { make DESTDIR="$BPM_OUTPUT" install - chmod 755 "$BPM_OUTPUT"/usr/lib/lib{hogweed,nettle}.so - install -m755 -d "$BPM_OUTPUT"/usr/share/doc/nettle - install -m644 nettle.{html,pdf} "$BPM_OUTPUT"/usr/share/doc/nettle + + # Install documentation + install -Dm644 nettle.{html,pdf} -t "$BPM_OUTPUT"/usr/share/doc/nettle + + # Install package licenses + install -Dm644 "$BPM_SOURCE"/COPYINGv2 "$BPM_OUTPUT"/usr/share/licenses/nettle/COPYINGv2 + install -Dm644 "$BPM_SOURCE"/COPYING.LESSERv3 "$BPM_OUTPUT"/usr/share/licenses/nettle/COPYING.LESSERv3 + install -Dm644 "$BPM_SOURCE"/COPYINGv3 "$BPM_OUTPUT"/usr/share/licenses/nettle/COPYINGv3 }