summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ac052bd58441266aab5929239b1a851b2042e4a3 (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
# Maintainer: Jules PĂ©nuchot <jules@penuchot.com>

_name=eve
_author=jfalcou

pkgname=${_name}-git
pkgver=2023.02.15.r112.gcf4ab5a8da
pkgrel=1
pkgdesc="Expressive Velocity Engine - SIMD in C++ Goes Brrrr"
arch=('any')
url="https://github.com/${_author}/${_name}"
license=('Boost')

depends=()
makedepends=('git' 'cmake' 'make')
provides=('eve')
conflicts=('eve')

source=("$pkgname::git+https://github.com/${_author}/${_name}.git#branch=main")
sha256sums=('SKIP')

pkgver() {
  cd $pkgname
  git describe --tags --long --match 'v*' | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//;'
}

prepare() {
  cmake -B build -S ${pkgname} \
        -DCMAKE_BUILD_TYPE:STRING='None' \
        -DCMAKE_INSTALL_PREFIX:PATH='/usr' \
        -Wno-dev
}

package() {
  make -C build DESTDIR=$pkgdir install
}