Add support for alternate package names

Add support for alternate package names if primary package name is not available in repos
pull/669/head
Jai-JAP 4 years ago committed by GitHub
parent 88ce180898
commit 8f3178dccd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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"

Loading…
Cancel
Save