blob: 5a7d573d07cda939ac852622d54fd0c058a1da7f (
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
39
40
41
42
43
44
45
|
# Maintainer: spider-mario <spidermario@free.fr>
# Contributor: Jon Noble <jonnobleuk@gmail.com>
pkgname=halide-git
pkgver=2019_08_27.r2898.g2531d11d2
pkgrel=2
pkgdesc="a language for fast, portable data-parallel computation"
arch=(x86_64)
url="https://halide-lang.org/"
license=('MIT')
depends=('llvm>=8.0')
makedepends=('git' 'cmake>=3.8' 'binutils' 'fakeroot' 'make' 'clang')
provides=("${pkgname%-*}")
conflicts=("halide-bin")
source=('git+https://github.com/halide/Halide.git')
md5sums=('SKIP')
pkgver() {
cd "$srcdir/Halide"
git describe --long --tags | sed 's/^release_//; s/\([^-]*-g\)/r\1/; y/-/./'
}
prepare() {
cd "$srcdir/Halide"
rm -rf "build/*"
mkdir -p build
}
build() {
cd "$srcdir/Halide/build"
cmake -DWITH_TESTS=False -DWITH_DOCS=False -DWITH_TUTORIALS=False -DWARNINGS_AS_ERRORS=False \
-DWITH_APPS=False -DBUILD_AOT_TUTORIAL=False -DWITH_UTILS=False -DCMAKE_INSTALL_PREFIX=/opt/halide \
..
make
}
check() {
cd "$srcdir/Halide/build"
}
package() {
cd "$srcdir/Halide/build"
make DESTDIR="$pkgdir/" install
install -Dm644 "$srcdir/Halide/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
}
|