upgpkg: ufw 0.36.2-1
[ArchLinux/community.git] / tl-expected / trunk / PKGBUILD
bloba5e742b2f269c3a6d2b697b453c1f3cabd010c10
1 # Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
2 # Contributor: Viktor Schneider <info[at]vjs[dot]io>
3 pkgname=tl-expected
4 pkgver=1.1.0
5 pkgrel=1
6 pkgdesc="C++11/14/17 std::expected with functional-style extensions"
7 arch=('any')
8 url="https://github.com/TartanLlama/expected"
9 license=('custom:CC0')
10 makedepends=('cmake' 'git' 'ninja')
11 source=("expected-v${pkgver}.tar.gz::https://github.com/TartanLlama/expected/archive/v${pkgver}.tar.gz")
12 sha256sums=('1db357f46dd2b24447156aaf970c4c40a793ef12a8a9c2ad9e096d9801368df6')
14 build() {
15   cd "expected-$pkgver"
16   cmake \
17       -B build \
18       -G Ninja \
19       -DCMAKE_INSTALL_PREFIX=/usr
20   ninja -C build
23 package() {
24   cd "expected-$pkgver"
25   DESTDIR="$pkgdir/" ninja -C build install
26   install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"