summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b61c8c178eeb4fa814c24921ed1b24e8a953c9c3 (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
# Maintainer: Guillaume Dolle  <dev at gdolle.com>
pkgname=cpp-ghc-filesystem
pkgver=1.5.12
pkgrel=1
pkgdesc="ghc C++ header-only single-file std filesystem compatible helper library"
arch=('i686' 'x86_64')
url="https://github.com/gulrak/filesystem"
license=('MIT')
depends=('gcc' 'cmake')
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/gulrak/filesystem/archive/v${pkgver}.tar.gz)
md5sums=('88ebdd8120216ddd3ca7be99310a7310')

prepare(){
  cd ${pkgname/cpp-ghc-/}-${pkgver}
  cmake -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_INSTALL_PREFIX=${pkgdir}/usr \
        -B build
}

build() {
  cd ${pkgname/cpp-ghc-/}-${pkgver}
  cmake --build build
}

check() {
  cd ${pkgname/cpp-ghc-/}-${pkgver}/build
  ctest
}

package() {
  cd ${pkgname/cpp-ghc-/}-${pkgver}
  cmake --install build
}