From 17a96afcfdb06a028b01154e9819a6b9a5e2fdef Mon Sep 17 00:00:00 2001
From: Philippe PITTOLI
Date: Tue, 27 Aug 2019 05:14:06 +0200
Subject: [PATCH 1/8] New recipe: Flex.
---
flex/recipe.spec | 7 +++++++
1 file changed, 7 insertions(+)
create mode 100644 flex/recipe.spec
diff --git a/flex/recipe.spec b/flex/recipe.spec
new file mode 100644
index 0000000..b3698be
--- /dev/null
+++ b/flex/recipe.spec
@@ -0,0 +1,7 @@
+name: flex
+version: 2.6.4
+release: 1
+sources: https://github.com/westes/flex/files/981163/flex-%{version}.tar.gz
+
+build-dependancies:
+ - make
From 6b05835174c90dc09e2d1908dbcfa89500e0d9ff Mon Sep 17 00:00:00 2001
From: Philippe PITTOLI
Date: Tue, 27 Aug 2019 05:14:30 +0200
Subject: [PATCH 2/8] New recipe: libargp.
---
libargp/recipe.spec | 13 +++++++++++++
1 file changed, 13 insertions(+)
create mode 100644 libargp/recipe.spec
diff --git a/libargp/recipe.spec b/libargp/recipe.spec
new file mode 100644
index 0000000..1abde13
--- /dev/null
+++ b/libargp/recipe.spec
@@ -0,0 +1,13 @@
+name: libargp
+version: 1.3-1
+release: 1
+sources: https://github.com/amylum/libargp/releases/download/%{version}/libargp.tar.gz -> %{name}-%{version}.tar.gz
+
+@configure
+ mv * ../root
+
+@build
+ true
+
+@install
+ true
From 32464fb1f160ddaa2de2278e22c7eae0adac29b4 Mon Sep 17 00:00:00 2001
From: Philippe PITTOLI
Date: Tue, 27 Aug 2019 06:06:57 +0200
Subject: [PATCH 3/8] New recipe: rsync.
---
rsync/recipe.spec | 4 ++++
1 file changed, 4 insertions(+)
create mode 100644 rsync/recipe.spec
diff --git a/rsync/recipe.spec b/rsync/recipe.spec
new file mode 100644
index 0000000..dfba2b7
--- /dev/null
+++ b/rsync/recipe.spec
@@ -0,0 +1,4 @@
+name: rsync
+version: 3.1.3
+release: 1
+sources: https://download.samba.org/pub/rsync/src/rsync-%{version}.tar.gz
From b859f72ab919645bb2b0faf13df5bf1fcab13a8d Mon Sep 17 00:00:00 2001
From: Philippe PITTOLI
Date: Tue, 27 Aug 2019 06:07:15 +0200
Subject: [PATCH 4/8] scdoc
---
scdoc/recipe.spec | 7 +++++++
1 file changed, 7 insertions(+)
create mode 100644 scdoc/recipe.spec
diff --git a/scdoc/recipe.spec b/scdoc/recipe.spec
new file mode 100644
index 0000000..7504dbf
--- /dev/null
+++ b/scdoc/recipe.spec
@@ -0,0 +1,7 @@
+name: scdoc
+version: 1.9.7
+release: 1
+sources: https://git.sr.ht/~sircmpwn/scdoc/archive/%{version}.tar.gz -> %{name}-%{version}.tar.gz
+
+@configure
+ true
From d9b717a1d511dd73221dfb058fbbca2ad7fbcb7c Mon Sep 17 00:00:00 2001
From: Philippe PITTOLI
Date: Tue, 27 Aug 2019 14:21:50 +0200
Subject: [PATCH 5/8] .gitignore .bz2 and the x86_64 package directory.
---
.gitignore | 2 ++
1 file changed, 2 insertions(+)
diff --git a/.gitignore b/.gitignore
index d7b46fb..e9d235d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,4 @@
*.gz
*.xz
+*.bz2
+x86_64/
From c77e7885f71aa3f5890d3f13c5034aa6b26e4e60 Mon Sep 17 00:00:00 2001
From: Philippe PITTOLI
Date: Tue, 27 Aug 2019 14:22:49 +0200
Subject: [PATCH 6/8] New recipe: llvm (latest release).
---
llvm/recipe.spec | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
create mode 100644 llvm/recipe.spec
diff --git a/llvm/recipe.spec b/llvm/recipe.spec
new file mode 100644
index 0000000..6e222c2
--- /dev/null
+++ b/llvm/recipe.spec
@@ -0,0 +1,37 @@
+name: llvm
+version: 8.0.1
+release: 1
+sources: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/llvm-%{version}.src.tar.xz
+dependencies:
+ - libffi
+
+@configure
+ mkdir %{name}-%{version}
+ cd %{name}-%{version} && \
+ cmake ../llvm-%{version}.src \
+ -DCMAKE_INSTALL_PREFIX=/usr/weirdos/%{name} \
+ -DLLVM_BUILD_DOCS=OFF\
+ -DLLVM_BUILD_EXAMPLES=OFF \
+ -DLLVM_BUILD_EXTERNAL_COMPILER_RT=ON \
+ -DLLVM_BUILD_LLVM_DYLIB=ON \
+ -DLLVM_ENABLE_ASSERTIONS=OFF \
+ -DLLVM_ENABLE_CXX1Y=ON \
+ -DLLVM_ENABLE_FFI=ON \
+ -DLLVM_ENABLE_LIBCXX=OFF \
+ -DLLVM_ENABLE_PIC=ON \
+ -DLLVM_ENABLE_RTTI=ON \
+ -DLLVM_ENABLE_SPHINX=OFF \
+ -DLLVM_ENABLE_TERMINFO=ON \
+ -DLLVM_ENABLE_ZLIB=ON \
+ -DLLVM_INCLUDE_EXAMPLES=OFF \
+ -DLLVM_LINK_LLVM_DYLIB=ON \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_CXX_FLAGS="-fPIC -O2" \
+ -DCMAKE_C_FLAGS="-fPIC -O2"
+
+ # when llvm-8 won't be the lastest LLVM version anymore
+ # -DCMAKE_INSTALL_PREFIX=/usr/bad/%{name}
+
+@build
+ cd %{name}-%{version}
+ make -j 4
From c080fdb142f97b4eb40681de15c6255bb4fd5c76 Mon Sep 17 00:00:00 2001
From: Philippe PITTOLI
Date: Wed, 28 Aug 2019 17:14:59 +0200
Subject: [PATCH 7/8] New recipe: libipc.
---
libipc/recipe.spec | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
create mode 100644 libipc/recipe.spec
diff --git a/libipc/recipe.spec b/libipc/recipe.spec
new file mode 100644
index 0000000..5c61434
--- /dev/null
+++ b/libipc/recipe.spec
@@ -0,0 +1,23 @@
+name: libipc
+version: 0.2.1
+release: 1
+sources: https://git.karchnu.fr/WeirdOS/libipc/archive/libipc-%{version}.tar.gz
+
+dirname: %{name}
+dependencies:
+ - make
+
+@configure
+ true
+
+# TODO: do not use pandoc, use scdoc instead so we can build the manual too
+# Rationale: pandoc is not a priority to package.
+
+@build
+ cd %{dirname}
+ make libipc
+ make src/ipc.h
+
+@install
+ cd %{dirname}
+ make DESTDIR="%{pkg}" install
From e58ca79909d4ed9c6e3799b6d2e7f60cc14260f0 Mon Sep 17 00:00:00 2001
From: Philippe PITTOLI
Date: Wed, 28 Aug 2019 17:15:27 +0200
Subject: [PATCH 8/8] build.zsh: now supports scdoc manpages.
---
build.zsh/recipe.spec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/build.zsh/recipe.spec b/build.zsh/recipe.spec
index d5ed17d..dba57a0 100644
--- a/build.zsh/recipe.spec
+++ b/build.zsh/recipe.spec
@@ -1,5 +1,5 @@
name: build.zsh
-version: 0.3.0
+version: 0.3.1
release: 1
sources: https://github.com/Lukc/build.zsh/archive/%{version}.tar.gz -> %{name}-%{version}.tar.gz