aboutsummaryrefslogtreecommitdiff
path: root/extra/samurai
diff options
context:
space:
mode:
Diffstat (limited to 'extra/samurai')
-rwxr-xr-xextra/samurai/build21
-rw-r--r--extra/samurai/checksums3
-rw-r--r--extra/samurai/files/ninja.in33
-rw-r--r--extra/samurai/meta3
-rw-r--r--extra/samurai/sources2
-rw-r--r--extra/samurai/version1
6 files changed, 0 insertions, 63 deletions
diff --git a/extra/samurai/build b/extra/samurai/build
deleted file mode 100755
index 8503932d..00000000
--- a/extra/samurai/build
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/sh -e
-
-export LDFLAGS="$LDFLAGS -static"
-
-# Samurai is faster than make, so we prefer using it instead if available
-if cpt l -q samurai; then
- cat - ninja.in <<EOF> build.ninja
-destdir = $1
-cc = ${CC:-cc}
-cflags = -std=c99 -Wall -Wextra -Wpedantic -Wno-unused-parameter $CFLAGS
-ldflags = -static $LDFLAGS
-EOF
- ninja
- ninja install
-else
- make PREFIX=/usr LDFLAGS="$LDFLAGS"
- make PREFIX=/usr DESTDIR="$1" install
-fi
-
-ln -s samu "$1/usr/bin/ninja"
-ln -s samu.1 "$1/usr/share/man/man1/ninja.1"
diff --git a/extra/samurai/checksums b/extra/samurai/checksums
deleted file mode 100644
index fc23909e..00000000
--- a/extra/samurai/checksums
+++ /dev/null
@@ -1,3 +0,0 @@
-%BLAKE3
-9f0315f1f6e123eb32c8cdb5fe98bcca1f1d2f4ca2617675476568cf3ddc07da samurai-1.2.tar.gz
-f0012d84a4697d81793f89d5387dbcbd43a43ee8cab93357a8d1082dce0ce3d1 ninja.in
diff --git a/extra/samurai/files/ninja.in b/extra/samurai/files/ninja.in
deleted file mode 100644
index c648e47c..00000000
--- a/extra/samurai/files/ninja.in
+++ /dev/null
@@ -1,33 +0,0 @@
-rule cc
- command = $cc $cflags -c -o $out $in
- description = Compiling C object $out
-rule link
- command = $cc $ldflags -o $out $in
- description = Linking $out
-rule custom
- command = $COMMAND
- description = $DESC
-
-build build.o: cc build.c
-build deps.o: cc deps.c
-build env.o: cc env.c
-build graph.o: cc graph.c
-build htab.o: cc htab.c
-build log.o: cc log.c
-build parse.o: cc parse.c
-build samu.o: cc samu.c
-build scan.o: cc scan.c
-build tool.o: cc tool.c
-build tree.o: cc tree.c
-build util.o: cc util.c
-build samu: link build.o deps.o env.o graph.o htab.o log.o parse.o samu.o scan.o tool.o tree.o util.o
-build install: phony bin-install man-install
-build PHONY: phony
-build bin-install: custom PHONY samu
- COMMAND = clinst -Dm755 samu $destdir/usr/bin/samu
- DESC = Installing samu
-build man-install: custom PHONY
- COMMAND = clman -d $destdir samu.1
- DESC = Installing manual page samu.1
-
-default samu
diff --git a/extra/samurai/meta b/extra/samurai/meta
deleted file mode 100644
index 7f8d1339..00000000
--- a/extra/samurai/meta
+++ /dev/null
@@ -1,3 +0,0 @@
-description: Ninja-compatible build tool written in C99
-license: MIT, Apache-2.0
-maintainer: Cem Keylan <cem@carbslinux.org>
diff --git a/extra/samurai/sources b/extra/samurai/sources
deleted file mode 100644
index e10d2035..00000000
--- a/extra/samurai/sources
+++ /dev/null
@@ -1,2 +0,0 @@
-https://github.com/michaelforney/samurai/releases/download/1.2/samurai-1.2.tar.gz
-files/ninja.in
diff --git a/extra/samurai/version b/extra/samurai/version
deleted file mode 100644
index f76d8346..00000000
--- a/extra/samurai/version
+++ /dev/null
@@ -1 +0,0 @@
-1.2 1