archrelease: copy trunk to community-any
[ArchLinux/community.git] / ghc-filesystem / trunk / PKGBUILD
blobeb71ad61438640865c23b01cedc305cd713a953f
1 # Maintainer: David Runge <dvzrv@archlinux.org>
3 _name=filesystem
4 pkgname=ghc-filesystem
5 pkgver=1.5.14
6 pkgrel=1
7 pkgdesc="An implementation of C++17 std::filesystem for C++11 /C++14/C++17/C++20"
8 arch=(any)
9 url="https://github.com/gulrak/filesystem"
10 license=(MIT)
11 makedepends=(cmake)
12 source=($url/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
13 sha512sums=('6eae921485ecdaf4b8329a568b1f4f612ee491fc5fdeafce9c8000b9bf1a73b6fa4e07d0d4ddf05be49efe79e9bddfbcc0aba85529cb016668797a8d89eb9b82')
14 b2sums=('9734907da65e0f390e461d76c7b1c7e8ffa1a0f7f01e5952d69d9d6b6cc3c85e20f5e4495235f2589635fb665040bf2ee4def4d3bdcb0f3453a00ee8c4e8ac3f')
16 build() {
17   local cmake_options=(
18     -B build
19     -S $_name-$pkgver
20     -DCMAKE_BUILD_TYPE=None
21     -DCMAKE_INSTALL_PREFIX=/usr
22     -Wno-dev
23   )
24   cmake "${cmake_options[@]}"
25   cmake --build build
28 check() {
29   ctest --output-on-failure --test-dir build/test
32 package() {
33   DESTDIR="$pkgdir" cmake --install build
34   install -vDm 644 $_name-$pkgver/README.md -t "$pkgdir/usr/share/doc/$pkgname/"
35   install -vDm 644 $_name-$pkgver/LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"