summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a76fe57025c1a01ccd8206c382a3b93ecd1632fd (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
# Maintainer: Luis Martinez <luis dot martinez at tuta dot io>

pkgname=icecream-cpp
pkgver=0.3.1
pkgrel=1
pkgdesc="Single header library for print debugging in C++11 and forward"
arch=('x86_64')
url="https://github.com/renatogarcia/icecream-cpp"
license=('MIT')
checkdepends=('cmake>=3.16' 'boost>=1.71.0')
provides=('icecream-debugging')
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('51bebb040c9c7e44f443d6356256ae4d93300d2e1f01824fd219c97d168a438f')

check() {
  export CPP_STANDARD=11
  cmake \
    -Wno-dev \
    -B build \
    -S "$pkgname-$pkgver"
  make -C build
  make -C build test
}

package() {
  cd "$pkgname-$pkgver"
  install -Dvm 644 icecream.hpp -t "$pkgdir/usr/include/"
  install -Dvm 644 LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname/"
  install -Dvm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
}