-
Notifications
You must be signed in to change notification settings - Fork 16
/
PKGBUILD
29 lines (24 loc) · 906 Bytes
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
pkgname=compiler-rt
pkgbase="llvm-project"
pkgver=18.1.8
_pkgver=18
pkgrel=1
pkgdesc="Compiler runtime libraries for use in Clang and LLVM projects"
arch=('x86_64')
url="https://llvm.org/"
license=('custom:University of Illinois/NCSA Open Source License')
depends=("llvm=${pkgver}" 'gcc')
makedepends=('cmake' 'python3')
source=("https://github.com/llvm/llvm-project/releases/download/llvmorg-${pkgver}/${pkgbase}-${pkgver}.src.tar.xz")
md5sums=('81cd0be5ae6f1ad8961746116d426a96')
build() {
cmake -B build -S ${pkgbase}-${pkgver}.src/${pkgname} \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DCOMPILER_RT_INSTALL_PATH=/usr/lib/clang/${_pkgver}
cmake --build build
}
package() {
DESTDIR=${pkgdir} cmake --install build
install -D -m644 ${pkgbase}-${pkgver}.src/${pkgname}/LICENSE.TXT ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}