summaryrefslogtreecommitdiff
path: root/user/clang/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-22 23:45:40 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-22 23:45:40 +0000
commit5f3d1e8e6c447876fff69c1a8b45fccc93691ccd (patch)
treed5809af74b292dafd6efe633e8131f2eb9a096b0 /user/clang/APKBUILD
parentdaf63c3be016f8177a14acd13ae0ad75482e18a5 (diff)
downloadpackages-5f3d1e8e6c447876fff69c1a8b45fccc93691ccd.tar.gz
packages-5f3d1e8e6c447876fff69c1a8b45fccc93691ccd.tar.bz2
packages-5f3d1e8e6c447876fff69c1a8b45fccc93691ccd.tar.xz
packages-5f3d1e8e6c447876fff69c1a8b45fccc93691ccd.zip
user/clang: push out fixes needed for building Servo
Diffstat (limited to 'user/clang/APKBUILD')
-rw-r--r--user/clang/APKBUILD14
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() {