blob: 706d9148678b35c8e0edc9f7c6df8cd383969126 (
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
|
# Maintainer: Jakub 'Eremiell' Marek <eremiell at eremiell dot net>
# See also https://github.com/eremiell-aur/dpp-git
pkgname=dpp-git
_pkgname=DPP
pkgver=10.0.25.r1.bf79d372
pkgrel=1
pkgdesc="Lightweight and Scalable C++ Discord API Bot Library - git version"
arch=('x86_64')
url="https://dpp.dev/"
license=('Apache')
depends=('glibc' 'gcc-libs' 'openssl' 'zlib' 'opus' 'libsodium' 'nlohmann-json')
makedepends=('cmake' 'pkgconf' 'git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
install="${pkgname}.install"
changelog="${pkgname}.changelog"
source=("${pkgname}::git+https://github.com/brainboxdotcc/${_pkgname}.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname}"
printf "%s" "$(git describe --long --tag | sed 's/\([^-]*-\)g/r\1/;s/-/./g;s/v//g')"
}
prepare() {
cd "${srcdir}/${pkgname}"
rm -rf "include/dpp/nlohmann"
}
build() {
cd "${srcdir}/${pkgname}"
mkdir -p build
cd build
cmake -DDPP_BUILD_TEST=OFF -DRUN_LDCONFIG=OFF -DDPP_NO_VCPKG=ON -DDPP_CORO=ON -DDPP_USE_EXTERNAL_JSON=ON -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_MESSAGE=NEVER -Wno-dev ..
make
}
package() {
cd "${srcdir}/${pkgname}/build"
make DESTDIR="${pkgdir}/" install
ln -s "/usr/include/nlohmann" "${pkgdir}/usr/include/dpp/nlohmann"
}
|