~alpine/aports

main/clang: fix packaging v1 APPLIED

alpine-mips-patches: 1
 main/clang: fix packaging

 1 files changed, 9 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.alpinelinux.org/~alpine/aports/patches/3117/mbox | git am -3
Learn more about email & git

[PATCH] main/clang: fix packaging Export this patch

Keep /usr/lib/clang/x.y.z/include in the main package as all these
headers (altivec.h, msa.h, x86intrin.h etc) are required to build
programs *with* clang, not against it.
---
 main/clang/APKBUILD | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/main/clang/APKBUILD b/main/clang/APKBUILD
index bbabdb5971..a7663a2b6a 100644
--- a/main/clang/APKBUILD
+++ b/main/clang/APKBUILD
@@ -4,7 +4,7 @@
pkgname=clang
# Note: Update together with llvm.
pkgver=9.0.0
pkgrel=0
pkgrel=1
_llvmver=${pkgver%%.*}
pkgdesc="A C language family front-end for LLVM"
arch="all"
@@ -81,6 +81,14 @@ static() {
	mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib/
}

dev() {
	default_dev

	# move back usr/lib/clang/x.y.z/include with files such as altivec.h, msa.h etc
	# these are needed to build programs *with* clang, not *against* it.
	mv "$subpkgdir"/usr/lib/clang "$pkgdir"/usr/lib/
}

analyzer() {
	pkgdesc="Clang source code analysis framework"
	depends="$pkgname=$pkgver-r$pkgrel perl python2"
-- 
2.23.0