From d4cb1386d79c95e7586e7bccad5b0f6c7861cfe8 Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 6 Oct 2021 09:03:02 +0100 Subject: added tarcapabilities --- keygen.sh | 4 +-- xibuild | 75 +++++++++++++++++++++++++++++++++++---------- xibuilds/acl.xibuild | 14 +++++++++ xibuilds/attr.xibuild | 15 +++++++++ xibuilds/bash.xibuild | 1 + xibuilds/bc.xibuild | 2 +- xibuilds/binutils.xibuild | 4 +-- xibuilds/bzip2.xibuild | 1 + xibuilds/dejagnu.xibuild | 1 + xibuilds/expect.xibuild | 2 +- xibuilds/file.xibuild | 11 ++----- xibuilds/flex.xibuild | 5 +-- xibuilds/gcc.xibuild | 11 ++++++- xibuilds/glibc.xibuild | 3 +- xibuilds/gmp.xibuild | 11 ++----- xibuilds/iana-etc.xibuild | 1 + xibuilds/libcap.xibuild | 21 +++++++++++++ xibuilds/m4.xibuild | 6 ++-- xibuilds/mpc.xibuild | 18 +++++++++++ xibuilds/mpfr.xibuild | 18 +++++++++++ xibuilds/ncurses.xibuild | 34 ++++++++++++++++++++ xibuilds/pkg-config.xibuild | 16 ++++++++++ xibuilds/readline.xibuild | 1 + xibuilds/sed.xibuild | 19 ++++++++++++ xibuilds/shadow.xibuild | 35 +++++++++++++++++++++ xibuilds/tcl.xibuild | 1 + xibuilds/xz.xibuild | 2 ++ xibuilds/zlib.xibuild | 1 + xibuilds/zstd.xibuild | 10 ++---- 29 files changed, 291 insertions(+), 52 deletions(-) create mode 100644 xibuilds/acl.xibuild create mode 100644 xibuilds/attr.xibuild create mode 100644 xibuilds/libcap.xibuild create mode 100644 xibuilds/mpc.xibuild create mode 100644 xibuilds/mpfr.xibuild create mode 100644 xibuilds/ncurses.xibuild create mode 100644 xibuilds/pkg-config.xibuild create mode 100644 xibuilds/sed.xibuild create mode 100644 xibuilds/shadow.xibuild diff --git a/keygen.sh b/keygen.sh index 7f8cda2..5ec5bbd 100755 --- a/keygen.sh +++ b/keygen.sh @@ -1,4 +1,4 @@ #!/bin/sh mkdir -p keychain -openssl genrsa -out keychain/psi.pem 4096 -openssl rsa -in keychain/psi.pem -pubout > keychain/psi.pub +openssl genrsa -out keychain/xi.pem 4096 +openssl rsa -in keychain/xi.pem -pubout > keychain/xi.pub diff --git a/xibuild b/xibuild index 47ac90b..a9b236a 100755 --- a/xibuild +++ b/xibuild @@ -17,13 +17,32 @@ usage: $0 XIBUILD EOF } +extract () { + FILE=$1 + echo extracting $FILE + case "${FILE#*.}" in + "tar.gz" ) + tar -zxf $FILE + ;; + "tar.lz" ) + tar --lzip -xf "$FILE" + ;; + "zip" ) + unzip $FILE + ;; + * ) + tar -xf $FILE + ;; + esac +} + xibuild () { BUILD_FILE=${@: -1} cd $XI_ROOT - [[ $# = 0 ]] && usage && exit 1 - [ ! -f "$BUILD_FILE" ] && echo "$BUILD_FILE not found" && exit 1 + [[ $# = 0 ]] && usage && return 1 + [ ! -f "$BUILD_FILE" ] && echo "$BUILD_FILE not found" && return 1 clean () { # clean up @@ -38,6 +57,7 @@ xibuild () { echo "Passing missing package stage" } + source $BUILD_FILE PKG_NAME=$(basename $BUILD_FILE .xibuild) @@ -60,7 +80,7 @@ xibuild () { date > $LOGFILE echo "Build log for $PKG_NAME from $BUILD_FILE\n" >> $LOGFILE - printf "\033[0;36m====> $PKG_NAME.xipkg\n" | tee -a $LOGFILE + printf "\033[0;36m====> $PKG_NAME.xipkg$RESET\n" | tee -a $LOGFILE cd $PKG_BUILD_DIR @@ -68,7 +88,13 @@ xibuild () { ############ # try get the commit hash for the package - VER_HASH=$(git ls-remote $SOURCE HEAD | awk '{ print $1 }') + if git ls-remote -q $SOURCE &> /dev/null; then + VER_HASH=$(git ls-remote $SOURCE HEAD ) + else + VER_HASH=$(curl -Ls $SOURCE | md5sum) + fi + + VER_HASH=$(echo $VER_HASH | awk '{ print $1 }') # If we already have this package, don't waste our time if [ -f "$PKG_FILE.info" ] && [ -f "$PKG_FILE" ]; then @@ -77,30 +103,37 @@ xibuild () { echo "Comparing $EXISTING_HASH to $VER_HASH" >> $LOGFILE printf "$INFO\tvalidating commit hash..."; - if [ "$EXISTING_HASH" == "$VER_HASH" ]; then - printf "$NEUTRAL package exists\n" - return 0; + if echo "$EXISTING_HASH" | grep -q "$VER_HASH"; then + printf "$NEUTRAL package exists$RESET\n" + return; else printf "$NEUTRAL package outdated\n" fi fi printf "$INFO\tfetching package..."; - git clone $SOURCE . >> $LOGFILE 2>&1 && printf "$PASS fetched $(du -sh $PKG_BUILD_DIR | awk '{ print $1 }') source\n" || printf "$ERROR error! See log\n" + if git ls-remote -q $SOURCE &> /dev/null; then + git clone $SOURCE . >> $LOGFILE 2>&1 && printf "$PASS fetched $(du -sh $PKG_BUILD_DIR | awk '{ print $1 }') source\n" || return 1; + else + DOWNLOADED=$(basename $SOURCE) + curl -Ls $SOURCE > $DOWNLOADED + extract $DOWNLOADED >> $LOGFILE 2>&1 && printf "$PASS fetched $(du -sh $PKG_BUILD_DIR | awk '{ print $1 }') source\n" || return 1; + cd $(ls -d */) + fi printf "$INFO\tbuilding package..."; - build >> $LOGFILE 2>&1 && printf "$PASS built\n" || printf "$ERROR error! See log\n"; + build >> $LOGFILE 2>&1 && printf "$PASS built\n" || return 1; printf "\033[0;34m\tpackaging package...\033[0m"; - package >> $LOGFILE 2>&1 && printf "$PASS packaged\n" || printf "$ERROR error! See log\n" + package >> $LOGFILE 2>&1 && printf "$PASS packaged\n" || return 1; # go back to root, make things easier cd $XI_ROOT printf "$INFO\tarchiving package..."; - tar -C $PKG_DEST -czf $PKG_FILE ./ >> $LOGFILE 2>&1 && printf "$PASS archived to $(du -sh $PKG_FILE | awk '{ print $1 }')\n" || printf "$ERROR error! See log\n" + tar -C $PKG_DEST -czf $PKG_FILE ./ >> $LOGFILE 2>&1 && printf "$PASS archived to $(du -sh $PKG_FILE | awk '{ print $1 }')\n" || return 1; # create info file @@ -109,6 +142,7 @@ xibuild () { echo "" > $PKG_INFO echo "NAME=$PKG_NAME" >> $PKG_INFO + echo "DESCRIPTION=$DESC" >> $PKG_INFO echo "PKG_FILE=$PKG_NAME.xipkg" >> $PKG_INFO echo "CHECKSUM=$(md5sum $PKG_FILE | awk '{ print $1 }')" >> $PKG_INFO echo "VER_HASH=$VER_HASH" >> $PKG_INFO @@ -131,14 +165,23 @@ xibuild () { fi printf "$PASS signed\n"; - printf "$PASS successfully built $PKG_NAME to $(basename $PKG_FILE)$RESET\n\n" + printf "$PASS successfully built $PKG_NAME to $(basename $PKG_FILE)$RESET\n" clean + return 0 } -FILES=$@ +build-all () { + FILES=$@ + + for BUILD_FILE in $FILES; do + xibuild $BUILD_FILE && printf "$RESET" || printf "$ERROR error! See log$RESET\n" + cd $XI_ROOT + done +} + +if [ $# -gt 0 ]; then + build-all $@ | tee -a xibuild.log +fi -for BUILD_FILE in $FILES; do - xibuild $BUILD_FILE -done diff --git a/xibuilds/acl.xibuild b/xibuilds/acl.xibuild new file mode 100644 index 0000000..7b86fe6 --- /dev/null +++ b/xibuilds/acl.xibuild @@ -0,0 +1,14 @@ +#!/bin/bash + +DEPS=(attr) + +SOURCE=http://download.savannah.nongnu.org/releases/acl/acl-2.3.1.tar.xz +DESC="Access control list utilities, libraries and headers" + +build () { + ./configure --prefix=/usr --disable-static --docdir=/usr/share/doc/acl-2.3.1 + make + + make DESTDIR=$PKG_DEST install + +} diff --git a/xibuilds/attr.xibuild b/xibuilds/attr.xibuild new file mode 100644 index 0000000..6aa9673 --- /dev/null +++ b/xibuilds/attr.xibuild @@ -0,0 +1,15 @@ +#!/bin/bash + +DEPS=(glibc) +SOURCE=http://download.savannah.nongnu.org/releases/attr/attr-2.5.1.tar.xz + +DESC="Extended attribute support library for ACL support" + +build () { + + ./configure --prefix=/usr --disable-static --sysconfdir=/etc --docdir=/usr/share/doc/attr-2.5.1 + + make + make check + make DESTDIR=$PKG_DEST install +} diff --git a/xibuilds/bash.xibuild b/xibuilds/bash.xibuild index b2a0156..ab6e11e 100644 --- a/xibuilds/bash.xibuild +++ b/xibuilds/bash.xibuild @@ -3,6 +3,7 @@ DEPS=(readline glibc ncurses) SOURCE=https://git.savannah.gnu.org/git/bash.git +DESC="The free Bourne Again Shell" build () { ./configure --without-bash-malloc --prefix=/usr diff --git a/xibuilds/bc.xibuild b/xibuilds/bc.xibuild index 989dc96..0d6da1c 100644 --- a/xibuilds/bc.xibuild +++ b/xibuilds/bc.xibuild @@ -3,7 +3,7 @@ DEPS=(readline) SOURCE=https://github.com/gavinhoward/bc - +DESC="An arbitrary precision numeric processing language" build () { CC=gcc ./configure --prefix=/usr -G -O3 diff --git a/xibuilds/binutils.xibuild b/xibuilds/binutils.xibuild index ea8caac..a8b0b4d 100644 --- a/xibuilds/binutils.xibuild +++ b/xibuilds/binutils.xibuild @@ -1,9 +1,9 @@ #!/bin/bash -DEPS=() +DEPS=(glib zlib elfutils) SOURCE=git://sourceware.org/git/binutils.git - +DESC="tools for handling object files" build () { ./configure --prefix=/usr --disable-nls --disable-werror diff --git a/xibuilds/bzip2.xibuild b/xibuilds/bzip2.xibuild index 726f0f7..d674a5d 100644 --- a/xibuilds/bzip2.xibuild +++ b/xibuilds/bzip2.xibuild @@ -3,6 +3,7 @@ DEPS=(glibc sh) SOURCE=git://sourceware.org/git/bzip2.git +DESC="a selection of programs for compressing and decompressing bzip2 files" build () { diff --git a/xibuilds/dejagnu.xibuild b/xibuilds/dejagnu.xibuild index ee09ef3..2e6acdc 100644 --- a/xibuilds/dejagnu.xibuild +++ b/xibuilds/dejagnu.xibuild @@ -3,6 +3,7 @@ DEPS=(sh expect) SOURCE=git://git.sv.gnu.org/dejagnu.git +DESC="a framework for running test suites on GNU tools" build () { diff --git a/xibuilds/expect.xibuild b/xibuilds/expect.xibuild index e2288a3..d2fed3c 100644 --- a/xibuilds/expect.xibuild +++ b/xibuilds/expect.xibuild @@ -3,7 +3,7 @@ DEPS=(tcl) SOURCE=https://github.com/aeruder/expect - +DESC="tools for automating interactive applications" build () { # note: --with-tcl, we might want to make a way to use the tcl that we've compiled in another package diff --git a/xibuilds/file.xibuild b/xibuilds/file.xibuild index 9141847..0e4da82 100644 --- a/xibuilds/file.xibuild +++ b/xibuilds/file.xibuild @@ -1,16 +1,11 @@ #!/bin/bash -DEPS=(glibc ) - -SOURCE=https://github.com/file/file +DEPS=(glibc zlib xz bzip2) +SOURCE=http://ftp.astron.com/pub/file/file-5.40.tar.gz +DESC="a utility for determining the type of a given file or files" build () { - # cheating - wget http://ftp.astron.com/pub/file/file-5.40.tar.gz - tar -zxf file-5.40.tar.gz - cd file-5.40 - ./configure --prefix=/usr make make check diff --git a/xibuilds/flex.xibuild b/xibuilds/flex.xibuild index 88d61a6..5502288 100644 --- a/xibuilds/flex.xibuild +++ b/xibuilds/flex.xibuild @@ -2,10 +2,11 @@ DEPS=(glibc m4 sh) -SOURCE=https://github.com/nlitsme/gnubc - +SOURCE=https://github.com/westes/flex +DESC="a utility for generating programs that recognize patterns in text" build () { + ./autogen.sh ./configure --prefix=/usr --docdir=/usr/share/doc/flex --disable-static make make check diff --git a/xibuilds/gcc.xibuild b/xibuilds/gcc.xibuild index 3edb513..f72f02b 100644 --- a/xibuilds/gcc.xibuild +++ b/xibuilds/gcc.xibuild @@ -2,10 +2,19 @@ DEPS=(glibc) -SOURCE=git://gcc.gnu.org/git/gcc.git +SOURCE=https://mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-11.2.0/gcc-11.2.0.tar.xz build () { + case $(uname -m) in + x86_64) + sed -e '/m64=/s/lib64/lib/' \ + -i.orig gcc/config/i386/t-linux64 + ;; +esac + + + mkdir -v build cd build ../configure --prefix=/usr --disable-multilib --disable-bootstrap diff --git a/xibuilds/glibc.xibuild b/xibuilds/glibc.xibuild index 5b111bd..cc943de 100644 --- a/xibuilds/glibc.xibuild +++ b/xibuilds/glibc.xibuild @@ -2,7 +2,8 @@ DEPS=(glibc) -SOURCE=https://sourceware.org/git/glibc.git +SOURCE=https://ftp.gnu.org/gnu/glibc/glibc-2.34.tar.xz +DESC="The main gnu C library providing basic routines and procedures" build () { # patches as recommended by lfs diff --git a/xibuilds/gmp.xibuild b/xibuilds/gmp.xibuild index 4a62d77..9161a73 100644 --- a/xibuilds/gmp.xibuild +++ b/xibuilds/gmp.xibuild @@ -2,10 +2,11 @@ DEPS=(gcc-libs sh) -SOURCE=https://github.com/ryepdx/gmp - +SOURCE=https://gmplib.org/download/gmp/gmp-6.2.1.tar.lz +DESC="a collection of mathematical libraries" build () { + ./configure --prefix=/usr --enable-cxx --disable-static --docdir=/usr/share/doc/gmp make @@ -17,9 +18,3 @@ build () { make DESTDIR=$PKG_DEST install make DESTDIR=$PKG_DEST install-html } - -package () { - ln -sv $PKG_DEST/usr/bin/flex $PKG_DEST/usr/bin/lex -} - - diff --git a/xibuilds/iana-etc.xibuild b/xibuilds/iana-etc.xibuild index 6466472..be9b261 100644 --- a/xibuilds/iana-etc.xibuild +++ b/xibuilds/iana-etc.xibuild @@ -3,6 +3,7 @@ DEPS=() SOURCE=https://github.com/Mic92/iana-etc +DESC="A set of data from the internet assigned numbers authority providing data for network services and protocols" build () { python update.py out diff --git a/xibuilds/libcap.xibuild b/xibuilds/libcap.xibuild new file mode 100644 index 0000000..9e3ec76 --- /dev/null +++ b/xibuilds/libcap.xibuild @@ -0,0 +1,21 @@ +#!/bin/bash + +DEPS=(glibc pam) + +SOURCE=https://git.kernel.org/pub/scm/libs/libcap/libcap.git/snapshot/libcap-2.59.tar.gz + +DESC="POSIX 1003.1e capabilities" + +build () { + sed -i '/install -m.*STA/d' libcap/Makefile + + make prefix=/usr lib=lib + + make test + make prefix=/usr lib=lib DESTDIR=$PKG_DEST install + +} + +package() { + chmod -v 755 $PKG_DEST/usr/lib/lib{cap,psx}.so.* +} diff --git a/xibuilds/m4.xibuild b/xibuilds/m4.xibuild index f28ec33..9a311a5 100644 --- a/xibuilds/m4.xibuild +++ b/xibuilds/m4.xibuild @@ -3,12 +3,14 @@ DEPS=(glibc bash) SOURCE=git://git.sv.gnu.org/m4 +DESC="the gnu m4 macro processor" build () { + git checkout branch-1.4 + ./bootstrap + ./configure --prefix=/usr make - make check make DESTDIR=$PKG_DEST install } - diff --git a/xibuilds/mpc.xibuild b/xibuilds/mpc.xibuild new file mode 100644 index 0000000..d242a83 --- /dev/null +++ b/xibuilds/mpc.xibuild @@ -0,0 +1,18 @@ +#!/bin/bash + +DEPS=(mpfr) + +SOURCE=http://www.multiprecision.org/downloads/mpc-1.2.0.tar.gz +DESC="Library for the arithmetic of complex numbers with arbitrarily high precision" + +build () { + ./configure --prefix=/usr --disable-static --docdir=/usr/share/doc/mpc-1.2.0 + + make + make html + + make check + + make DESTDIR=$PKG_DEST install + make DESTDIR=$PKG_DEST install-html +} diff --git a/xibuilds/mpfr.xibuild b/xibuilds/mpfr.xibuild new file mode 100644 index 0000000..4895dc9 --- /dev/null +++ b/xibuilds/mpfr.xibuild @@ -0,0 +1,18 @@ +#!/bin/bash + +DEPS=(glibc gmp) +SOURCE=https://www.mpfr.org/mpfr-current/mpfr-4.1.0.tar.xz + +DESC="Multiple-precision floating-point library" + +build () { + ./configure --prefix=/usr --disable-static --enable-thread-safe --docdir=/usr/share/doc/mpfr-4.1.0 + make + make html + + make check + + make DESTDIR=$PKG_DEST install + make DESTDIR=$PKG_DEST install-html +} + diff --git a/xibuilds/ncurses.xibuild b/xibuilds/ncurses.xibuild new file mode 100644 index 0000000..064fe07 --- /dev/null +++ b/xibuilds/ncurses.xibuild @@ -0,0 +1,34 @@ +#!/bin/bash + +DEPS=(glibc) + +SOURCE=https://invisible-mirror.net/archives/ncurses/ncurses-6.2.tar.gz + +DESC="curses emulation library" + +build () { + ./configure --prefix=/usr --mandir=/usr/share/man --with-shared --without-debug --without-normal --enable-pc-files --enable-widec + + make + + make DESTDIR=$PKG_DEST install +} + + +package () { + for lib in ncurses form panel menu ; do + rm -vf $PKG_DEST/usr/lib/lib${lib}.so + echo "INPUT(-l${lib}w)" > $PKG_DEST/usr/lib/lib${lib}.so + ln -sfv ${lib}w.pc $PKG_DEST/usr/lib/pkgconfig/${lib}.pc + rm -vf /usr/lib/libcursesw.so + done + + echo "INPUT(-lncursesw)" > $PKG_DEST/usr/lib/libcursesw.so + ln -sfv libncurses.so $PKG_DEST/usr/lib/libcurses.so + + + rm -fv $PKG_DEST/usr/lib/libncurses++w.a + + mkdir -v $PKG_DEST/usr/share/doc/ncurses-6.2 + cp -v -R doc/* $PKG_DEST/usr/share/doc/ncurses-6.2 +} diff --git a/xibuilds/pkg-config.xibuild b/xibuilds/pkg-config.xibuild new file mode 100644 index 0000000..0b5de5a --- /dev/null +++ b/xibuilds/pkg-config.xibuild @@ -0,0 +1,16 @@ +#!/bin/bash + +DEPS=(glibc) +SOURCE=https://gitlab.freedesktop.org/pkg-config/pkg-config + +DESC="a tool for passing the include path to build tools during configure and make phases of package installations" + +build () { + ./autogen.sh + ./configure --prefix=/usr --disable-host-tool --docdir=/usr/share/doc/pkg-config + + make + make check + + make DESTDIR=$PKG_DEST install +} diff --git a/xibuilds/readline.xibuild b/xibuilds/readline.xibuild index 2721677..844b109 100644 --- a/xibuilds/readline.xibuild +++ b/xibuilds/readline.xibuild @@ -3,6 +3,7 @@ DEPS=(glibc ncurses) SOURCE=https://git.savannah.gnu.org/git/readline.git +DESC="a set of libraries that offer command line editing and history capabilities" build () { diff --git a/xibuilds/sed.xibuild b/xibuilds/sed.xibuild new file mode 100644 index 0000000..087620e --- /dev/null +++ b/xibuilds/sed.xibuild @@ -0,0 +1,19 @@ +#!/bin/bash + +DEPS=(glibc acl attr) + +SOURCE=https://www.gnu.org/software/sed/ +DESC="GNU stream editor" + +build () { + ./configure --prefix=/usr + make + make html + + make DESTDIR=$PKG_DEST install +} + +package () { + install -d -m755 $PKG_DEST/usr/share/doc/sed-4.8 + install -m644 doc/sed.html $PKG_DEST/usr/share/doc/sed-4.8 +} diff --git a/xibuilds/shadow.xibuild b/xibuilds/shadow.xibuild new file mode 100644 index 0000000..ed786d4 --- /dev/null +++ b/xibuilds/shadow.xibuild @@ -0,0 +1,35 @@ +#!/bin/bash + +DEPS=(pam acl audit libcap libxcrypt) + +SOURCE=https://github.com/shadow-maint/shadow +DESC="Password and account management tool suite with support for shadow files and PAM" + +build () { + sed -i 's/groups$(EXEEXT) //' src/Makefile.in + find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \; + find man -name Makefile.in -exec sed -i 's/getspnam\.3 / /' {} \; + find man -name Makefile.in -exec sed -i 's/passwd\.5 / /' {} \; + + + sed -e 's:#ENCRYPT_METHOD DES:ENCRYPT_METHOD SHA512:' \ + -e 's:/var/spool/mail:/var/mail:' \ + -e '/PATH=/{s@/sbin:@@;s@/bin:@@}' \ + + sed -e "224s/rounds/min_rounds/" -i libmisc/salt.c + + mkdir -p $PKG_DEST/usr/bin + touch $PKG_DEST/usr/bin/passwd + ./configure --sysconfdir=/etc --with-group-name-max-length=32 + + make + + make exec_prefix=/usr DESTDIR=$PKG_DEST install + + make DESTDIR=$PKG_DEST -C man install-man + +} + +package () { + mkdir -p $PKG_DEST/etc/default +} diff --git a/xibuilds/tcl.xibuild b/xibuilds/tcl.xibuild index 16442f4..d5d0f7e 100644 --- a/xibuilds/tcl.xibuild +++ b/xibuilds/tcl.xibuild @@ -3,6 +3,7 @@ DEPS=(zlib) SOURCE=https://github.com/tcltk/tcl +DESC="the Tool Command language, a robust general purpose scripting language" build () { diff --git a/xibuilds/xz.xibuild b/xibuilds/xz.xibuild index e17f53b..d57d72a 100644 --- a/xibuilds/xz.xibuild +++ b/xibuilds/xz.xibuild @@ -3,9 +3,11 @@ DEPS=(sh) SOURCE=https://git.tukaani.org/xz.git +DESC="a selection of programs for compressing and decompressing files with the lzma and xz compression formats" build () { + ./autogen.sh ./configure --prefix=/usr --disable-static --docdir=$PKG_DEST/usr/share/doc/xz-5.2.5 make make check diff --git a/xibuilds/zlib.xibuild b/xibuilds/zlib.xibuild index c771727..426fdfe 100644 --- a/xibuilds/zlib.xibuild +++ b/xibuilds/zlib.xibuild @@ -3,6 +3,7 @@ DEPS=(glibc) SOURCE=https://github.com/madler/zlib +DESC="compression and decompression routines used by some programs" build () { diff --git a/xibuilds/zstd.xibuild b/xibuilds/zstd.xibuild index 63ba9af..9e90fd7 100644 --- a/xibuilds/zstd.xibuild +++ b/xibuilds/zstd.xibuild @@ -2,17 +2,11 @@ DEPS=(glibc gcc-libs zlib xz lz4) -SOURCE=https://github.com - +SOURCE=https://github.com/facebook/zstd +DESC="the Zstandard real-time compression algorithm" build () { make make prefix=/usr check make DESTDIR=$PKG_DEST install } - -package () { - # Remove a useless static library (lfs recommended) - rm -v $PKG_DEST/usr/lib/libzstd.a -} - -- cgit v1.2.1