new: more package migrations

This commit is contained in:
ngn
2024-07-20 22:52:09 +03:00
parent 983ddd9a38
commit e46f384f6c
69 changed files with 727 additions and 0 deletions

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

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

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

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

29
src/flex/pkg.sh Normal file
View File

@ -0,0 +1,29 @@
# general info
NAME="flex"
DESC="The Fast Lexical Analyzer"
VERSION="2.6.4"
# required files
FILES=("https://github.com/westes/flex/releases/download/v${VERSION}/flex-${VERSION}.tar.gz")
HASHES=("2882e3179748cc9f9c23ec593d6adc8d")
# install and build depends
DEPENDS=()
BUILD=()
build(){
tar xf "${NAME}-${VERSION}.tar.gz"
cd "${NAME}-${VERSION}"
./configure --prefix=/usr \
--docdir="/usr/share/doc/flex-${VERSION}" \
--disable-static
make
make DESTDIR="${ROOTDIR}" install
ln -sv flex "${ROOTDIR}/usr/bin/lex"
ln -sv flex.1 "${ROOTDIR}/usr/share/man/man1/lex.1"
cd .. && rm -r "${NAME}-${VERSION}"
}