summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 514e4a1e7eaee649c71636ff6c797ff47e0cbec9 (plain)
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
30
31
32
33
34
35
36
37
38
# Maintainer: Sebastiaan de Schaetzen <sebastiaan.de.schaetzen@gmail.com>

pkgname=ldc-xtensa-git
pkgver=1.20.1
pkgrel=2
pkgdesc='LDC built for ESP32 xtensa.'
arch=('x86_64')
url='https://github.com/espressif/llvm-xtensa'
license=('GPL')
depends=(
    'llvm-xtensa'
    'python2'
    'libxml2'
    'python')
makedepends=(
    'ldc'
    'llvm-xtensa'
    'git'
    'ninja'
    'cmake')
provides=('llvm-xtensa')
source=("https://github.com/ldc-developers/ldc/releases/download/v${pkgver}/ldc-${pkgver}-src.tar.gz")
sha256sums=('SKIP')

build() {
  mkdir -p build-ldc
  cd build-ldc
  cmake -G Ninja ../ldc-${pkgver}-src \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/opt/ldc-xtensa \
    -DLLVM_ROOT_DIR=/opt/llvm-xtensa
  cmake --build .
}

package() {
  cd build-ldc
  DESTDIR="${pkgdir}" cmake --install . 
}