summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f893d8c7bfeec015a2e0d36eece60aa2d42b9893 (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
# Maintainer: Porta <portalmaster137@gmail.com>
pkgname='include_gardener'
pkgver=r294.1980a9d
pkgrel=1
pkgdesc="A tool to generate a graphviz graph of your C/C++ project's include structure."
arch=("x86_64")
url="https://github.com/portalmaster137/include_gardener"
license=("MIT")
depends=("boost" "graphviz" "python-pip")
makedepends=("git" "cmake" "base")
source=('include_gardener::git+https://github.com/portalmaster137/include_gardener.git')
md5sums=('SKIP')

pkgver() {
    cd "$pkgname"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd "$pkgname"
    mkdir -p build
    cd build
    cmake ..
    make
}

package() {
    cd "$pkgname"
    cd build
    make DESTDIR="$pkgdir" install
}