Merge pull request 'add curl and rsync' (#32) from Ohio2/repo:master into master

Reviewed-on: #32
This commit is contained in:
hippoz 2021-07-19 22:12:21 +01:00
commit ee164b2911
13 changed files with 83 additions and 13 deletions

View file

@ -1,6 +1,6 @@
wget -O binutils-2.36.1.tar.xz https://ftp.gnu.org/gnu/binutils/binutils-2.36.1.tar.xz
tar -xf binutils-2.36.1.tar.xz
cd binutils-2.36.1
wget -O binutils-2.37.tar.xz https://ftp.gnu.org/gnu/binutils/binutils-2.36.1.tar.xz
tar -xf binutils-2.37.tar.xz
cd binutils-2.37
chmod +x makeinfo
export PATH=$PATH:$PWD

View file

@ -1,5 +1,5 @@
pkg_config_deploy=true
pkg_config_ver="2.36.1"
pkg_config_ver="2.37"
pkg_config_name="binutils"
pkg_config_makedepends=""
pkg_config_depends=""

View file

@ -2,4 +2,4 @@ pkg_config_deploy=true
pkg_config_ver="1.33.1"
pkg_config_name="busybox"
pkg_config_makedepends=""
pkg_config_depends="curses-lib"
pkg_config_depends="curses-lib rsync"

View file

@ -4,6 +4,6 @@ cd clang-12.0.1.src
mkdir build
cd build
cmake -DLLVM_ENABLE_PROJECTS=clang -G "Unix Makefiles" ../llvm
cmake -DLLVM_ENABLE_PROJECTS=clang -G "Unix Makefiles" ..
make
make DESTDIR="$1" install

7
curl/build Executable file
View file

@ -0,0 +1,7 @@
wget https://curl.se/download/curl-7.77.0.tar.bz2
tar -xf curl-7.77.0.tar.bz2
cd curl-7.77.0
./configure --with-openssl
make
make DESTDIR="$1" install

5
curl/package Executable file
View file

@ -0,0 +1,5 @@
pkg_config_deploy=true
pkg_config_ver="7.77.0"
pkg_config_name="curl"
pkg_config_makedepends="openssl"
pkg_config_depends="openssl"

View file

@ -2,4 +2,4 @@ pkg_config_deploy=true
pkg_config_ver="2.9.5"
pkg_config_name="git"
pkg_config_makedepends="openssl"
pkg_config_depends="openssl"
pkg_config_depends="openssl curl"

View file

@ -4,7 +4,7 @@ cd llvm-12.0.1.src
mkdir build
cmake -S llvm -B build -G 'Unix Makefiles'
cmake -B build -G 'Unix Makefiles'
cd build
make
make DESTDIR="$1" install

View file

@ -1,5 +1,5 @@
wget https://github.com/mesonbuild/meson/releases/download/0.58.1/meson-0.58.1.tar.gz
tar -xf meson-0.58.1.tar.gz
cd meson-0.58.1
wget https://github.com/mesonbuild/meson/releases/download/0.59.0/meson-0.58.1.tar.gz
tar -xf meson-0.59.0.tar.gz
cd meson-0.59.0
pip3 install $1

View file

@ -1,5 +1,5 @@
pkg_config_deploy=true
pkg_config_ver="0.58.1"
pkg_config_ver="0.59.0"
pkg_config_name="meson"
pkg_config_makedepends="python ninja "
pkg_config_depends=""

View file

@ -1,4 +1,4 @@
git clone https://github.com/ninja-build/ninja/archive/refs/tags/v1.10.2.tar.gz
wget https://github.com/ninja-build/ninja/archive/refs/tags/v1.10.2.tar.gz
tar -xf v1.10.2.tar.gz
cd ninja-1.10.2

53
rsync/build Executable file
View file

@ -0,0 +1,53 @@
wget https://download.samba.org/pub/rsync/src/rsync-3.2.2.tar.gz
tar -xf rsync-3.2.2.tar.gz
cd rsync-3.2.2
cat > mkproto.awk << "EOF"
#!/usr/bin/awk -f
BEGIN {
while ((getline i < "proto.h") > 0) old_protos = old_protos ? old_protos "\n" i : i
protos = "/* This file is automatically generated with \"make proto\". DO NOT EDIT */\n"
}
inheader {
protos = protos "\n" ((inheader = /\)[ \t]*$/ ? 0 : 1) ? $0 : $0 ";")
next
}
/^FN_(LOCAL|GLOBAL)_[^(]+\([^,()]+/ {
local = /^FN_LOCAL/
gsub(/^FN_(LOC|GLOB)AL_|,.*$/, "")
sub(/^BOOL\(/, "BOOL ")
sub(/^CHAR\(/, "char ")
sub(/^INTEGER\(/, "int ")
sub(/^STRING\(/, "char *")
protos = protos "\n" $0 (local ? "(int module_id);" : "(void);")
next
}
/^static|^extern|;/||!/^[A-Za-z][A-Za-z0-9_]* / { next }
/\(.*\)[ \t]*$/ {
protos = protos "\n" $0 ";"
next
}
/\(/ {
inheader = 1
protos = protos "\n" $0
}
END {
if (old_protos != protos) print protos > "proto.h"
print "" > "proto.h-tstamp"
}
EOF
sed 's/perl/awk -f/;s/mkproto.pl/mkproto.awk/' Makefile.in > _
mv -f _ Makefile.in
export CFLAGS="-static $CFLAGS"
./configure --prefix=/usr --with-included-popt --disable-xxhash --disable-zstd --disable-lz4 --without-included-zlib
make
make DESTDIR="$1" install

5
rsync/package Executable file
View file

@ -0,0 +1,5 @@
pkg_config_deploy=true
pkg_config_ver="3.2.2"
pkg_config_name="rsync"
pkg_config_makedepends=""
pkg_config_depends=""