blob: e4c2cd67afe485205b37ad08319b9b83460d2a44 (
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
|
# Maintainer: Jean-Michaƫl Celerier <jeanmichael.celerier at gmail dot com>
pkgname=cninja
pkgver=3.7.6
release_tag=v3.7.6
pkgrel=1
pkgdesc="Opinionated CMake config manager"
arch=('x86_64')
url="https://github.com/jcelerier/cninja"
license=('AGPLv3')
depends=('cmake' 'clang' 'lld' 'ninja' 'libc++')
makedepends=('boost')
optdepends=()
provides=("$pkgname=$pkgver")
conflicts=()
replaces=()
source=("https://github.com/jcelerier/cninja/releases/download/v${pkgver}/cninja-v${pkgver}-src.tar.gz")
sha512sums=('ad21e6d1648cca2a2b0ac5fba322109c0f43410e14125af47ccf129cdb26e2e9cc576900f13383b50fff1afbd85560575cb47506eca2c4c93059d8016874ecec')
build() {
cd "$srcdir"
mkdir -p "$srcdir/build"
cd "$srcdir/build"
cmake \
-Wno-dev \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="$pkgdir/usr" \
"$srcdir"
cmake --build .
}
package() {
cd "$srcdir/build"
cmake --build . --target install/strip
install -D -m644 "$srcdir/LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|