mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:47:34 +00:00
Ports: Add links
Doesn't actually run yet. in_term's read() fails with EFAULT for reasons that are presently beyond me, points to a bug in Serenity.
This commit is contained in:
parent
674be46afd
commit
b7d315319d
2 changed files with 33 additions and 0 deletions
|
@ -41,6 +41,23 @@ function run_fetch_git() {
|
|||
fi
|
||||
}
|
||||
|
||||
function run_fetch_web() {
|
||||
if [ -d "$PORT_DIR" ]; then
|
||||
run_command_nocd rm -rf "$PORT_DIR"
|
||||
fi
|
||||
file=$(basename "$1")
|
||||
run_command_nocd curl "$1" -o "$file"
|
||||
mkdir "$PORT_DIR"
|
||||
|
||||
# may need to make strip-components configurable, as I bet some sick person
|
||||
# out there has an archive that isn't in a directory :shrug:
|
||||
run_command_nocd tar xavf "$file" -C "$PORT_DIR" --strip-components=1
|
||||
}
|
||||
|
||||
function run_export_env() {
|
||||
export $1="$2"
|
||||
}
|
||||
|
||||
function run_replace_in_file() {
|
||||
run_command perl -p -i -e "$1" $2
|
||||
}
|
||||
|
|
16
Ports/links/links.sh
Executable file
16
Ports/links/links.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
PORT_DIR=links
|
||||
function fetch() {
|
||||
run_fetch_web "http://links.twibright.com/download/links-2.19.tar.bz2"
|
||||
}
|
||||
function configure() {
|
||||
run_export_env CC i686-pc-serenity-gcc
|
||||
run_configure_autotools
|
||||
}
|
||||
function build() {
|
||||
run_make
|
||||
}
|
||||
function install() {
|
||||
run_make_install DESTDIR="$SERENITY_ROOT"/Root
|
||||
}
|
||||
source ../.port_include.sh
|
Loading…
Add table
Add a link
Reference in a new issue