#!/usr/local/bin/bash # # This is a generic build.sh script # It can be used nearly unmodified with many packages # # The concept of "method" registering and the logic that implements it was shamelessly # stolen from jhlj's Compile.sh script :) # # Check the following 4 variables before running the script topdir=vim version=6.3.4 pkgver=1 source[0]=$topdir-6.3.tar.bz2 # If there are no patches, simply comment this patch[0]=6.3.001 patch[1]=6.3.002 patch[2]=6.3.003 patch[3]=6.3.004 # Helper var patchcount=${#patch[@]} # Source function library . ${HOME}/buildpkg/scripts/buildpkg.functions # We need to override this topsrcdir=vim63 patchdir=$srcfiles/vim-6.3-patches # Define script functions and register them METHODS="" reg() { METHODS="$METHODS $1" } reg prep prep() { clean source unpack 0 for ((i=0; i