aboutsummaryrefslogtreecommitdiff
path: root/distribute/archlinux/PKGBUILD
blob: 13c6f7903bad606f8620145478c4796d45e350ea (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
# Maintainer: dec05eba <dec05eba@protonmail.com>

pkgname=sibs-git
pkgver=v0.3.2.r0.g784919f
pkgrel=1
pkgdesc='A simple cross-platform build system and package manager for c, c++ and zig. Inspired by rusts cargo'
arch=('x86_64')
url="https://github.com/DEC05EBA/sibs"
license=('GPL3')
depends=('curl' 'libarchive' 'libgit2' 'ninja' 'cmake' 'ccache')
makedepends=('curl' 'libarchive' 'libgit2' 'cmake' 'git')
optdepends=('git')
provides=('sibs')
conflicts=('sibs')
source=("git+https://github.com/DEC05EBA/sibs.git")
sha512sums=('SKIP')

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

prepare() {
  cd "$srcdir/sibs"
  git submodule update --init --recursive
}

build() {
  cd "$srcdir/sibs/cmake"
  mkdir release
  cd release
  cmake -DCMAKE_BUILD_TYPE=Release ../../
  make
}

package() {
  cd "$srcdir/sibs/cmake/release"
  install -D -m +x sibs "$pkgdir/usr/bin/sibs"
}