summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d2f6c108facabcfde90e8094dcee523461e1e3f5 (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
# Maintainer: Thibaut PĂ©rami <thibaut.perami@ens.fr>

pkgname=magic_enum
pkgver=0.6.4
pkgrel=1
pkgdesc="Header-only C++17 library, provides static reflection for enums, works with any enum type without any macro or boilerplate code."
arch=('any')
url="https://github.com/Neargye/magic_enum"
license=('MIT')
makedepends=('cmake' 'wget')
source=("https://github.com/Neargye/magic_enum/archive/v0.6.4.tar.gz")
sha256sums=('3a9c7d99a957a54dff2129c6a99f0aab2f1252836fc38e79e5494f6ac3420f09')

build() {
  cd "${pkgname}-${pkgver}"
  cmake -DCMAKE_INSTALL_PREFIX=/usr -B build
  cmake --build build
}

check(){
  cd "${pkgname}-${pkgver}/build"
  make test
}

package() {
  cd "${pkgname}-${pkgver}/build"
  make DESTDIR="${pkgdir}" install
}