diff options
Diffstat (limited to 'distribute')
-rw-r--r-- | distribute/archlinux/PKGBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/distribute/archlinux/PKGBUILD b/distribute/archlinux/PKGBUILD new file mode 100644 index 0000000..13c6f79 --- /dev/null +++ b/distribute/archlinux/PKGBUILD @@ -0,0 +1,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" +} |