summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d08379537eda3a6f7ccdd7fecf6e21e888806f1c (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
# Maintainer: michaelkuc6 <michaelkuc6 at gmail dot com>
_pkgname=oatpp
pkgname="${_pkgname}-git"
pkgver=1.3.0.r38.g306a01c1
pkgrel=1
pkgdesc="Oat++ is an open-source C++ web framework for highly scalable and resource-efficient web applications."
arch=('x86_64')
url="https://github.com/oatpp/oatpp"
license=('Apache')
depends=()
makedepends=('cmake')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
epoch=1
source=(
  "${_pkgname}::git+https://github.com/oatpp/oatpp.git"
  'module-install.cmake.patch'
	'module-config.cmake.in.patch'
)
sha256sums=(
  'SKIP'
  '564e8ec5bb5009ceb8713b91ec2b11ce3346dd022abe30760462362b5f8d027b'
  '27e3c6704134ff31dd824446c4653a0154837e1faf58fb5ac4866bf5060c3eca'
)

pkgver() {
	cd "${srcdir}/${_pkgname}"
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "${srcdir}"
	patch -p0 < module-install.cmake.patch
	patch -p0 < module-config.cmake.in.patch

	cd "${_pkgname}"
	mkdir -p build
	cd build
	cmake -DCMAKE_INSTALL_PREFIX=/usr ..
	cmake --build .
}

package() {
	cd "$srcdir/${_pkgname}/build"
	make install DESTDIR="${pkgdir}"
}