Second commit
This commit is contained in:
@@ -13,12 +13,11 @@ plugin_getpkgfiles() {
|
||||
}
|
||||
|
||||
plugin_bump() {
|
||||
local -r PKGREL=$(readSetting "${PKGDIR}"/"${PKGNAME}"/files/PKGBUILD "pkgrel" 0)
|
||||
sed -i "s/pkgrel=.*/pkgrel=$((PKGREL+1))/" "${PKGDIR}"/"${PKGNAME}"/files/PKGBUILD
|
||||
local -r PKGREL=$(readSetting "${PKGBUILD}" "pkgrel" 0)
|
||||
sed -i "s/pkgrel=.*/pkgrel=$((PKGREL+1))/" "${PKGBUILD}"
|
||||
}
|
||||
|
||||
plugin_getlatestversion() {
|
||||
local -r PKGSETTINGS=${PKGDIR}/${PKGNAME}/settings
|
||||
local -r GITHUBUSER=$(readSetting "${PKGSETTINGS}" "githubuser" "")
|
||||
local -r GITHUBREPO=$(readSetting "${PKGSETTINGS}" "githubrepo" "")
|
||||
local -r GITBRANCH=$(readSetting "${PKGSETTINGS}" "gitbranch" "")
|
||||
@@ -40,7 +39,6 @@ plugin_getlatestversion() {
|
||||
}
|
||||
|
||||
plugin_update() {
|
||||
local -r PKGSETTINGS=${PKGDIR}/${PKGNAME}/settings
|
||||
local -r GITHUBUSER=$(readSetting "${PKGSETTINGS}" "githubuser" "")
|
||||
local -r GITHUBREPO=$(readSetting "${PKGSETTINGS}" "githubrepo" "")
|
||||
local -r GITBRANCH=$(readSetting "${PKGSETTINGS}" "gitbranch" "")
|
||||
@@ -60,7 +58,6 @@ plugin_update() {
|
||||
writeSetting "${PKGSETTINGS}" "pkgrev" "$((PKGREVISION + 1))"
|
||||
writeSetting "${PKGSETTINGS}" "pkgrel" "1"
|
||||
|
||||
local -r PKGBUILD="${PKGDIR}/${PKGNAME}/files/PKGBUILD"
|
||||
writeSetting "${PKGBUILD}" "_githubuser" "${GITHUBUSER}"
|
||||
writeSetting "${PKGBUILD}" "_githubrepo" "${GITHUBREPO}"
|
||||
writeSetting "${PKGBUILD}" "_gitcommit" "${ONLINECOMMIT}"
|
||||
|
||||
Reference in New Issue
Block a user