From 45774dfb43a8587d3a1ea25ef64fcdd18c651cf8 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 15 Apr 2020 23:40:55 +0200 Subject: Add archlinux pkgbuild --- distribute/archlinux/PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 distribute/archlinux/PKGBUILD 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 + +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" +} -- cgit v1.2.3