diff options
Diffstat (limited to 'user')
-rw-r--r-- | user/clang/APKBUILD | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/user/clang/APKBUILD b/user/clang/APKBUILD index a95693351..6d2a11703 100644 --- a/user/clang/APKBUILD +++ b/user/clang/APKBUILD @@ -56,10 +56,24 @@ check() { } package() { + local _dir _file cd "$builddir"/build make DESTDIR="$pkgdir" install install -m 644 lib/libclang.a "$pkgdir"/usr/lib + + # mozilla will never be happy + mkdir -p "$pkgdir"/usr/lib/llvm$_llvmver/bin + mkdir -p "$pkgdir"/usr/lib/llvm$_llvmver/lib + for _dir in bin lib; do + pushd "$pkgdir"/usr/$_dir + for _file in *; do + [ -f $_file ] || continue + ln -s "../../../$_dir/$_file" \ + "$pkgdir"/usr/lib/llvm$_llvmver/$_dir/$_file + done + popd + done } static() { |