blob: e9f3b741918900575964daf3285a3ca7d47e29b6 (
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
38
39
|
# Maintainer: tocic <tocic at protonmail dot ch>
pkgname=doxide
pkgver=0.7.1
pkgrel=1
pkgdesc="Modern documentation for modern C++"
arch=("x86_64")
url="https://doxide.org"
license=("Apache-2.0")
depends=("gcc-libs" "libyaml")
makedepends=("cmake" "git" "icu")
_tag=41b107aabf14adae72fef52d197b1536b384f9b3 # git rev-parse v${pkgver}
source=("${pkgname}-${pkgver}::git+https://github.com/lawmurray/doxide.git#tag=${_tag}")
b2sums=("SKIP")
pkgver() {
git -C "${pkgname}-${pkgver}" describe --tags \
| sed 's/^v//'
}
prepare() {
git -C "${pkgname}-${pkgver}" submodule update \
--depth=1 --init --recursive
}
build() {
cmake -B "build/" -S "${pkgname}-${pkgver}" \
-D CMAKE_BUILD_TYPE:STRING="Release" \
-D CMAKE_CXX_FLAGS_RELEASE:STRING="-DNDEBUG" \
-D CMAKE_C_FLAGS_RELEASE:STRING="-DNDEBUG" \
-D CMAKE_INSTALL_PREFIX:PATH="/usr/" \
-Wno-dev
cmake --build "build/"
}
package() {
DESTDIR="${pkgdir}" cmake --install "build/"
}
|