new: migrate even more packages

This commit is contained in:
ngn
2024-07-21 19:37:19 +03:00
parent 44706f4e3d
commit beea0545f8
44 changed files with 526 additions and 0 deletions

3
src/gawk/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.cache/
dist/
root/

2
src/gawk/changes.md Normal file
View File

@ -0,0 +1,2 @@
# 5.3.0
First version

25
src/gawk/pkg.sh Normal file
View File

@ -0,0 +1,25 @@
# general info
NAME="gawk"
DESC="GNU awk"
VERSION="5.3.0"
# required files
FILES=("https://ftp.gnu.org/gnu/gawk/gawk-${VERSION}.tar.xz")
HASHES=("97c5a7d83f91a7e1b2035ebbe6ac7abd")
# install and build depends
DEPENDS=("glibc" "mpfr" "bash")
BUILD=()
build(){
tar xf "${NAME}-${VERSION}.tar.xz"
cd "${NAME}-${VERSION}"
sed -i 's/extras//' Makefile.in
./configure --prefix=/usr \
--host=$LFS_TGT \
--build=$(build-aux/config.guess)
make && make DESTDIR="${ROOTDIR}" install
cd .. && rm -r "${NAME}-${VERSION}"
}