diff --git a/vpu.sh b/vpu.sh index cc7f465..b846244 100755 --- a/vpu.sh +++ b/vpu.sh @@ -173,6 +173,9 @@ function checkSetup() { } +search_srcpkgs(){ + ls ${repoPath}/srcpkgs | grep $1 +} case "${1}" in @@ -185,7 +188,7 @@ case "${1}" in ${adminCmd} xbps-install -R ${repoPath}/hostdir/binpkgs ${package} ;; - -ib|ib) + install-nonfree|-inf|-inf) ${repoPath}/xbps-src pkg ${package} if [ -f /usr/bin/sudo ];then adminCmd="sudo" @@ -193,6 +196,10 @@ case "${1}" in fi ${adminCmd} xbps-install -R ${repoPath}/hostdir/binpkgs/nonfree ${package} ;; + + search|-s|s) + search_srcpkgs "${2}" + ;; check | -ck | ck) checkSetup @@ -214,4 +221,4 @@ case "${1}" in ;; -esac \ No newline at end of file +esac