Remove dependency on version.sh library file
This commit is contained in:
		
							
								
								
									
										5
									
								
								PKGBUILD
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								PKGBUILD
									
									
									
									
									
								
							@@ -13,11 +13,6 @@ source=("${pkgname}::git+file:///home/etorres/Projects/file-scripts")
 | 
				
			|||||||
install=$pkgname.install
 | 
					install=$pkgname.install
 | 
				
			||||||
sha256sums=('SKIP')
 | 
					sha256sums=('SKIP')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
pkgver() {
 | 
					 | 
				
			||||||
    cd "${srcdir}/${pkgname}/bash"
 | 
					 | 
				
			||||||
    bash version.sh --print
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package() {
 | 
					package() {
 | 
				
			||||||
    cd "${srcdir}/${pkgname}"
 | 
					    cd "${srcdir}/${pkgname}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -11,12 +11,14 @@ for f in "$LIBDIR"/*.sh; do
 | 
				
			|||||||
	source "${f}"
 | 
						source "${f}"
 | 
				
			||||||
done
 | 
					done
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Constants
 | 
				
			||||||
 | 
					VERSION=2.0.0
 | 
				
			||||||
DEFAULT_TEMPLATE_DIR="$HOME/Templates"
 | 
					DEFAULT_TEMPLATE_DIR="$HOME/Templates"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Helper functions
 | 
					# Helper functions
 | 
				
			||||||
function help() {
 | 
					function help() {
 | 
				
			||||||
	cat <<HELPMESSAGE
 | 
						cat <<HELPMESSAGE
 | 
				
			||||||
$(basename "$0") $MAJOR_VERSION.$MINOR_VERSION.$PATCH_VERSION
 | 
					$(basename "$0") $VERSION
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Usage: $(basename "$0") [-h] [-d DIR] [-f] dest
 | 
					Usage: $(basename "$0") [-h] [-d DIR] [-f] dest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -11,13 +11,16 @@ for f in "$LIBDIR"/*.sh; do
 | 
				
			|||||||
	source "${f}"
 | 
						source "${f}"
 | 
				
			||||||
done
 | 
					done
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Constants
 | 
				
			||||||
 | 
					VERSION=2.0.0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
BOOT_DIR='/boot'
 | 
					BOOT_DIR='/boot'
 | 
				
			||||||
ETC_DIR='/etc'
 | 
					ETC_DIR='/etc'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Helper functions
 | 
					# Helper functions
 | 
				
			||||||
function help() {
 | 
					function help() {
 | 
				
			||||||
	cat <<HELPMESSAGE
 | 
						cat <<HELPMESSAGE
 | 
				
			||||||
$(basename "$0") $MAJOR_VERSION.$MINOR_VERSION.$PATCH_VERSION
 | 
					$(basename "$0") $VERSION
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Usage: $(basename "$0") [-h|--help] [options] [patterns]
 | 
					Usage: $(basename "$0") [-h|--help] [options] [patterns]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -12,6 +12,7 @@ for f in "$LIBDIR"/*.sh; do
 | 
				
			|||||||
done
 | 
					done
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# ========== Constants ==========
 | 
					# ========== Constants ==========
 | 
				
			||||||
 | 
					VERSION='2.0.0'
 | 
				
			||||||
RED=$'\e[1;31m'
 | 
					RED=$'\e[1;31m'
 | 
				
			||||||
GREEN=$'\e[1;32m'
 | 
					GREEN=$'\e[1;32m'
 | 
				
			||||||
BLUE=$'\e[1;34m'
 | 
					BLUE=$'\e[1;34m'
 | 
				
			||||||
@@ -25,7 +26,7 @@ declare -a typeopts
 | 
				
			|||||||
# ========== Helper functions ==========
 | 
					# ========== Helper functions ==========
 | 
				
			||||||
function help() {
 | 
					function help() {
 | 
				
			||||||
    cat << HELPMESSAGE
 | 
					    cat << HELPMESSAGE
 | 
				
			||||||
$(basename "$0") $MAJOR_VERSION.$MINOR_VERSION.$PATCH_VERSION
 | 
					$(basename "$0") $VERSION
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Usage: $(basename "$0") [-h] [-d] [-e] [-E ext] [-f] [-F] [-I] [-i] [-l] patterns [patterns ...]
 | 
					Usage: $(basename "$0") [-h] [-d] [-e] [-E ext] [-f] [-F] [-I] [-i] [-l] patterns [patterns ...]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,9 +0,0 @@
 | 
				
			|||||||
#!/usr/bin/env bash
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
MAJOR_VERSION=1
 | 
					 | 
				
			||||||
MINOR_VERSION=2
 | 
					 | 
				
			||||||
PATCH_VERSION=0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
if [[ "$1" == '--print' ]]; then
 | 
					 | 
				
			||||||
	echo "${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}"
 | 
					 | 
				
			||||||
fi
 | 
					 | 
				
			||||||
		Reference in New Issue
	
	Block a user