Skip to content

Commit

Permalink
Copy project license files into package
Browse files Browse the repository at this point in the history
The terms of use attached to the GLU C Library require this.
  • Loading branch information
sgerrand committed Aug 13, 2018
1 parent e6ff91b commit 324f105
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
command: docker run --env RSA_PRIVATE_KEY="$RSA_PRIVATE_KEY" --env RSA_PRIVATE_KEY_NAME="sgerrand.rsa" --volumes-from input --volumes-from output sgerrand/alpine-abuild:v7
- run:
name: Test package installation
command: docker run --volumes-from output alpine:3.8 sh -c "cp /packages/sgerrand.rsa.pub /etc/apk/keys/ && apk -U add --no-progress --upgrade /packages/builder/x86_64/*.apk"
command: docker run --volumes-from output alpine:3.8 sh -c "cp /packages/sgerrand.rsa.pub /etc/apk/keys/ && apk -U add --no-progress --upgrade /packages/builder/x86_64/*.apk && test -f /usr/glibc-compat/share/licenses/COPYING && test -f /usr/glibc-compat/share/licenses/LICENSES"
- run:
name: Extract packages
command: |
Expand Down
5 changes: 5 additions & 0 deletions APKBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ package() {
ln -s /usr/glibc-compat/lib/ld-linux-x86-64.so.2 ${pkgdir}/lib/ld-linux-x86-64.so.2
ln -s /usr/glibc-compat/lib/ld-linux-x86-64.so.2 ${pkgdir}/lib64/ld-linux-x86-64.so.2
ln -s /usr/glibc-compat/etc/ld.so.cache ${pkgdir}/etc/ld.so.cache

local file; for file in COPYING LICENSES; do
install -m 644 -D "$srcdir"/$FILE \
"$pkgdir"/usr/glibc-compat/share/licenses/$pkgname/$file
done
}

bin() {
Expand Down

0 comments on commit 324f105

Please sign in to comment.