mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 02:42:56 +02:00
New package: rc23-2.0.4
This commit is contained in:
parent
a972d9b878
commit
01c6f51fc6
2 changed files with 49 additions and 0 deletions
14
srcpkgs/rc23/patches/static.patch
Normal file
14
srcpkgs/rc23/patches/static.patch
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -20,9 +20,9 @@
|
||||||
|
CPPFLAGS += -DRC_ADDON=$(RC_ADDON)
|
||||||
|
|
||||||
|
LIB_EDIT_null =
|
||||||
|
-LIB_EDIT_edit = -ledit
|
||||||
|
+LIB_EDIT_edit = -ledit -lncurses
|
||||||
|
LIB_EDIT_editline = -leditline
|
||||||
|
-LIB_EDIT_readline = -lreadline
|
||||||
|
+LIB_EDIT_readline = -lreadline -lncurses
|
||||||
|
LDLIBS += $(LIB_EDIT_$(EDIT))
|
||||||
|
|
||||||
|
OBJ_ADDON_0 =
|
35
srcpkgs/rc23/template
Normal file
35
srcpkgs/rc23/template
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
# Template file for 'rc23'
|
||||||
|
pkgname=rc23
|
||||||
|
version=2.0.4
|
||||||
|
revision=1
|
||||||
|
build_style=gnu-makefile
|
||||||
|
make_build_args="$(vopt_if readline EDIT=readline)
|
||||||
|
$(vopt_if libedit EDIT=edit)"
|
||||||
|
make_install_args="${make_build_args}"
|
||||||
|
makedepends="$(vopt_if readline readline-devel)
|
||||||
|
$(vopt_if libedit libedit-devel)"
|
||||||
|
short_desc="Alternative implementation of the plan 9 rc shell"
|
||||||
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
||||||
|
license="Zlib"
|
||||||
|
homepage="https://codeberg.org/rc23/rc23"
|
||||||
|
distfiles="https://codeberg.org/rc23/rc23/archive/v${version}.tar.gz"
|
||||||
|
checksum=08d48c6bb287bfe22689e8db6342aa5d7fbb874af6b0625c6cf9f57a55630fbc
|
||||||
|
register_shell="/bin/rc23"
|
||||||
|
|
||||||
|
build_options="readline libedit static"
|
||||||
|
build_options_default="readline"
|
||||||
|
|
||||||
|
pre_build() {
|
||||||
|
# fake .git/index, else version.h gets rebuilt repeatedly
|
||||||
|
mkdir -p .git
|
||||||
|
touch .git/index
|
||||||
|
|
||||||
|
if [ "$build_option_static" ]; then
|
||||||
|
LDFLAGS+=" -static"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
make CC="$BUILD_CC" CFLAGS="$BUILD_CFLAGS" LIBS= LDFLAGS= \
|
||||||
|
sigmsgs.c sigmsgs.h statval.h
|
||||||
|
fi
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue