diff --git a/pkg.info b/pkg.info index 4d699b2..1b28b2c 100644 --- a/pkg.info +++ b/pkg.info @@ -1,11 +1,36 @@ name: vim description: A highly configurable text editor -version: 9.1.1779 +version: 9.1.1798 +revision: 1 url: https://www.vim.org/ license: vim architecture: any -depends: ["acl","glibc","gpm","libgcrypt","zlib"] -optional_depends: ["gawk","lua","perl","python3","ruby","sh","tcl"] -make_depends: ["gawk","lua","perl","python3","ruby","tcl"] -keep: ["etc/vimrc"] type: source +keep: + - etc/vimrc +depends: + - acl + - glibc + - gpm + - libgcrypt + - zlib +optional_depends: + - gawk + - lua + - perl + - python3 + - ruby + - sh + - tcl +make_depends: + - gawk + - lua + - perl + - python3 + - ruby + - tcl +downloads: + - url: https://github.com/vim/vim/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz + extract_to_bpm_source: true + extract_strip_components: 1 + checksum: 38154bb5012a8c037f7f3a579840b974c951734debcd10ad774b9a736a04973b diff --git a/source.sh b/source.sh index 26e6c4e..bd942c8 100644 --- a/source.sh +++ b/source.sh @@ -2,15 +2,9 @@ # 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 +# This function is used for putting downloaded files to the correct location or applying patches prepare() { - wget "$DOWNLOAD" - tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE" - cd "$BPM_SOURCE" # Define place for global vimrc file sed -E 's|^.*(#define SYS_.*VIMRC_FILE.*").*$|\1|g' -i src/feature.h