diff --git a/.circleci/config.yml b/.circleci/config.yml index 2fd8698..d895b3a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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: | diff --git a/APKBUILD b/APKBUILD index 3bc1dcf..894fc83 100644 --- a/APKBUILD +++ b/APKBUILD @@ -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() {