Initial Commit
This commit is contained in:
@@ -0,0 +1,9 @@
|
|||||||
|
name: vim
|
||||||
|
description: A highly configurable text editor
|
||||||
|
version: 9.1.0041
|
||||||
|
url: https://www.vim.org/
|
||||||
|
license: custom
|
||||||
|
architecture: any
|
||||||
|
depends: ["acl","attr","glibc","python3","ncurses","tcl"]
|
||||||
|
make_depends: ["acl","attr","bash","binutils","coreutils","diffutils","gcc","glibc","grep","make","ncurses","sed"]
|
||||||
|
type: source
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
# This is the source.sh script. It is executed by BPM in a temporary directory when compiling a source package
|
||||||
|
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
||||||
|
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
||||||
|
|
||||||
|
DOWNLOAD="https://github.com/vim/vim/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz"
|
||||||
|
FILENAME="${DOWNLOAD##*/}"
|
||||||
|
|
||||||
|
# The prepare function is executed in the root of the temp directory
|
||||||
|
# This function is used for downloading files and putting them into the correct location
|
||||||
|
prepare() {
|
||||||
|
wget "$DOWNLOAD"
|
||||||
|
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
|
||||||
|
}
|
||||||
|
|
||||||
|
# The build function is executed in the source directory
|
||||||
|
# This function is used to compile the source code
|
||||||
|
build() {
|
||||||
|
echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h
|
||||||
|
./configure --prefix=/usr
|
||||||
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
# The check function is executed in the source directory
|
||||||
|
# This function is used to run tests to verify the package has been compiled correctly
|
||||||
|
check() {
|
||||||
|
make test
|
||||||
|
}
|
||||||
|
|
||||||
|
# The package function is executed in the source directory
|
||||||
|
# This function is used to move the compiled files into the output directory
|
||||||
|
package() {
|
||||||
|
make DESTDIR="$BPM_OUTPUT" install
|
||||||
|
mkdir -p "$BPM_OUTPUT"/usr/share/doc/
|
||||||
|
ln -sfv ../vim/vim91/doc "$BPM_OUTPUT"/usr/share/doc/vim
|
||||||
|
install -Dm644 runtime/doc/uganda.txt "$BPM_OUTPUT"/usr/share/licenses/vim/license.txt
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user