summaryrefslogtreecommitdiff
path: root/wcc-git
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-11-22 12:43:10 +0100
committerErich Eckner <git@eckner.net>2021-11-22 12:43:10 +0100
commitaab53ac1a39390a8b95159469e4b4d3a026ef16d (patch)
treedee068286f3d1ffc786a25c293e71721a922ec18 /wcc-git
parent914be9d62c4c797f86682879b0f1db8ef6346774 (diff)
downloadarchlinuxewe-aab53ac1a39390a8b95159469e4b4d3a026ef16d.tar.xz
wcc-git neu
Diffstat (limited to 'wcc-git')
-rw-r--r--wcc-git/PKGBUILD45
-rw-r--r--wcc-git/stropts.h.diff10
2 files changed, 55 insertions, 0 deletions
diff --git a/wcc-git/PKGBUILD b/wcc-git/PKGBUILD
new file mode 100644
index 000000000..2b052c8c6
--- /dev/null
+++ b/wcc-git/PKGBUILD
@@ -0,0 +1,45 @@
+# Mantainer: Erich Eckner <arch at eckner dot net>
+# Contributor: epitron <chris@ill-logic.com>
+
+pkgname=wcc-git
+_pkgname=wcc
+pkgver=0.0.2.r11.g1bc7a5f
+pkgrel=1
+pkgdesc="The Witchcraft Compiler Collection"
+arch=('i486' 'i686' 'pentium4' 'x86_64')
+license=('MIT')
+depends=(capstone glibc binutils zlib libelf readline gsl)
+makedepends=(git make)
+provides=(wcc=${pkgver%.r*.g*})
+conflicts=(wcc)
+url=https://github.com/endrazine/wcc
+source=("git+https://github.com/endrazine/wcc.git" 'stropts.h.diff')
+sha512sums=('SKIP'
+ 'fe45efd0c639ee0e52f67b9daa3bcb815c5a793d757e8d819ad6ab06b1c42966f2a49673f415a771de2f318527551378b86c6ed7c5d8ca381d4c4049cfb6d6ae')
+
+pkgver() {
+ cd "$_pkgname"
+ git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
+}
+
+prepare() {
+ cd "$_pkgname"
+ patch -p1 -i "${srcdir}/stropts.h.diff"
+ git submodule init
+ git submodule update
+}
+
+build() {
+ cd "$_pkgname"
+ make
+}
+
+package() {
+ cd "$_pkgname"
+ install -d "${pkgdir}/usr/bin"
+ make DESTDIR="${pkgdir}/" install
+
+ # install manpages
+ install -d "${pkgdir}/usr/share/man/man1/"
+ install -pm 644 doc/manpages/* $pkgdir/usr/share/man/man1
+}
diff --git a/wcc-git/stropts.h.diff b/wcc-git/stropts.h.diff
new file mode 100644
index 000000000..55334ed36
--- /dev/null
+++ b/wcc-git/stropts.h.diff
@@ -0,0 +1,10 @@
+--- a/src/wsh/include/libwitch/wsh.h 2021-11-22 12:40:11.733332595 +0100
++++ b/src/wsh/include/libwitch/wsh.h 2021-11-22 12:40:11.733332595 +0100
+@@ -47,7 +47,6 @@
+ #include <stdbool.h>
+ #include <sys/wait.h>
+ #include <poll.h>
+-#include <stropts.h>
+ #include <signal.h>
+ #include <malloc.h>
+ #include <sys/mman.h>