blob: 4699d1ab3bd7b4422f49eed37867de07b8f28b21 (
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: Yuan Zhou <xyyqzy@hotmail.com>
_pkgname=woboq_codebrowser
pkgname=$_pkgname-git
pkgver=r447.3c41d81
pkgrel=3
pkgdesc="A web-based code browser for your C/C++ projects"
arch=('x86_64')
url="https://woboq.com/codebrowser.html"
license=('CCPL')
depends=('clang')
makedepends=('cmake' 'llvm' 'clang')
source=("$pkgname::git+https://github.com/woboq/$_pkgname")
sha512sums=('SKIP')
pkgver() {
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$pkgname"
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .
make
}
package() {
cd "$pkgname"
make DESTDIR="$pkgdir" install
}
|