new: more package migrations
This commit is contained in:
3
src/flex/.gitignore
vendored
Normal file
3
src/flex/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
.cache/
|
||||
dist/
|
||||
root/
|
2
src/flex/changes.md
Normal file
2
src/flex/changes.md
Normal file
@ -0,0 +1,2 @@
|
||||
# 2.6.4
|
||||
First version
|
29
src/flex/pkg.sh
Normal file
29
src/flex/pkg.sh
Normal 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}"
|
||||
}
|
Reference in New Issue
Block a user