diff --git a/pkg-install b/pkg-install index 521374b..9e087f2 100755 --- a/pkg-install +++ b/pkg-install @@ -13,6 +13,7 @@ error() { #$1 is a quotation-marked, space-seperated list of package names. #$2 is the path to the program folder being installed. +#"package0 package1 | package2" represents "package0 & package1" or "package0 & package2" (whichever is available) in $2 #Example usage: ~/pi-apps/pkg-install "gparted buffer expect" ~/pi-apps/apps/Arduino PKG_LIST="$1" #quotation-marked, space-seperated list of package names to install @@ -144,7 +145,7 @@ Version: 1.0 Architecture: all Priority: optional Section: custom -Depends: $(echo "$PKG_LIST" | tr -d ',' | sed 's/ /, /g') +Depends: $(echo "$PKG_LIST" | tr -d ',' | sed 's/ /, /g' | sed 's/, |/ |/g' | sed 's/|, /| /g') Package: pi-apps-$appnamehash" > ~/pi-apps-$appnamehash/DEBIAN/control dpkg-deb --build ~/pi-apps-$appnamehash || error "pkg-install: failed to create dummy deb pi-apps-$appnamehash"