blob: 29cb911195bf0444f4b005bb680e94ed257db967 (
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
|
# Maintainer: Otreblan <otreblain@gmail.com>
pkgname=libclsp
pkgver=0.1.3
pkgrel=1
epoch=
pkgdesc="A C++17 library for language servers"
arch=('x86_64')
url="https://github.com/otreblan/libclsp"
license=('GPL3')
groups=()
depends=('boost-libs')
makedepends=('cmake' 'boost' 'rapidjson')
checkdepends=()
optdepends=()
provides=("${pkgname}.so")
conflicts=()
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=("8e6b059ad3f7f1800cfadcf077d3d469082ce90e8d8bc2d4bf283a2bfe1ea6db")
prepare() {
mkdir -p "$pkgname-$pkgver/build"
}
build() {
cd "$pkgname-$pkgver/build"
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_UNITY_BUILD=ON \
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON \
..
make
}
package() {
cd "$pkgname-$pkgver/build"
make DESTDIR="$pkgdir/" install
}
|