aboutsummaryrefslogtreecommitdiff
path: root/distribute
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-04-15 23:40:55 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-06 07:39:58 +0200
commit45774dfb43a8587d3a1ea25ef64fcdd18c651cf8 (patch)
tree69d3ce183cca1c19238c01aa6241186a5ee56253 /distribute
parentf9666347840e519f6248c71688b57227bca4f454 (diff)
Add archlinux pkgbuild
Diffstat (limited to 'distribute')
-rw-r--r--distribute/archlinux/PKGBUILD39
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"
+}