blob: 9c96f1da0f581fb1d20114124f4235ae7ac63fa7 (
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
35
36
37
|
# Maintainer: tcg <aur-tcg@emailaddress.biz>
pkgname=tcg-git
pkgver=0.2.75
pkgrel=1
pkgdesc="cgroups for terminals"
arch=('x86_64')
url="https://github.com/zasdfgbnm/tcg"
license=('MIT')
depends=('boost-libs' 'fmt' 'spdlog' 'libseccomp')
makedepends=('git' 'cmake' 'boost')
source=("git+$url")
sha256sums=('SKIP')
build() {
cd "$srcdir/tcg"
mkdir -p build
cd build
if [ "x$CODE_COVERAGE" = "xON" ]; then
cmake -DVERSION=${pkgver} -DCMAKE_INSTALL_PREFIX=/usr -DCODE_COVERAGE=ON -DGCDA_DIR=/var/lib/tcg ..
else
cmake -DVERSION=${pkgver} -DCMAKE_INSTALL_PREFIX=/usr ..
fi
make -j
}
package() {
cd "$srcdir/tcg"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/tcg/LICENSE"
if [ "x$CODE_COVERAGE" = "xON" ]; then
mkdir -p "${pkgdir}/usr/src/tcg/"
mkdir -p "${pkgdir}/var/lib/tcg/"
install -Dm644 build/CMakeFiles/tcg.dir/src/*.gcno "${pkgdir}/usr/src/tcg/"
install -Dm644 src/{*.cpp,*.hpp} "${pkgdir}/usr/src/tcg/"
fi
install -Dm4755 build/tcg "${pkgdir}/usr/bin/tcg"
}
|