blob: d8fb6e9c1ec1c7172c377f9e8fdf225b4040e05e (
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
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: michaelkuc6 <michaelkuc6 at gmail dot com>
_pkgname=oatpp-swagger
pkgname="${_pkgname}-git"
pkgver=1.2.5.r0.geffa263
pkgrel=1
pkgdesc="OpenApi 3.0.0 docs + Swagger UI for oatpp services"
arch=('x86_64')
url="https://github.com/oatpp/oatpp-swagger"
license=('Apache')
depends=('oatpp')
makedepends=('cmake')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
epoch=1
source=(
"${_pkgname}::git+https://github.com/oatpp/oatpp-swagger.git"
'module-config.cmake.in.patch'
'module-install.cmake.patch'
'CMakeLists.txt.patch'
)
md5sums=(
'SKIP'
'SKIP'
'SKIP'
'SKIP'
)
pkgver() {
cd "${srcdir}/${_pkgname}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${srcdir}"
patch -p0 < module-config.cmake.in.patch
patch -p0 < module-install.cmake.patch
patch -p0 < CMakeLists.txt.patch
cd "${_pkgname}"
mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
cmake --build .
}
package() {
cd "$srcdir/${_pkgname}/build"
make install DESTDIR="${pkgdir}"
}
|