This commit is contained in:
MatMoul 2023-01-14 12:57:59 +01:00
parent 0ad6dbf3a9
commit 998913c5a2
4 changed files with 21 additions and 18 deletions

View File

@ -68,7 +68,7 @@ updatePkgSums() { # $1=FILES
local -r FILES=${1} local -r FILES=${1}
local TMPDIR="" local TMPDIR=""
TMPDIR=$(mktemp -d) TMPDIR=$(mktemp -d)
cp -r "${FILES}/*" "${TMPDIR}" cp -r "${FILES}"/* "${TMPDIR}"
chown -R pkgbuilder "${TMPDIR}" chown -R pkgbuilder "${TMPDIR}"
sudo -u pkgbuilder updpkgsums "${TMPDIR}"/PKGBUILD sudo -u pkgbuilder updpkgsums "${TMPDIR}"/PKGBUILD
cp -r "${TMPDIR}"/PKGBUILD "${FILES}/" cp -r "${TMPDIR}"/PKGBUILD "${FILES}/"

View File

@ -1,25 +1,26 @@
#!/bin/bash #!/bin/bash
custom_plugin_isupdatable() { plugin_isupdatable() {
return 1 return 1
} }
custom_plugin_isbumpable() { plugin_isbumpable() {
return 0
}
plugin_getpkgfiles() {
echo "${PKGDIR}/${PKGNAME}/files"
}
plugin_bump() {
local -r PKGREL=$(readSetting "${PKGBUILD}" "pkgrel" 0)
sed -i "s/pkgrel=.*/pkgrel=$((PKGREL+1))/" "${PKGBUILD}"
}
plugin_getlatestversion() {
return 1 return 1
} }
custom_plugin_getpkgfiles() { plugin_update() {
return 1
}
custom_plugin_bump() {
return 1
}
custom_plugin_getlatestversion() {
return 1
}
custom_plugin_update() {
return 1 return 1
} }

View File

@ -17,7 +17,8 @@ url="https://github.com/${_githubuser}/${_githubrepo}"
#install="${pkgname}.install" #install="${pkgname}.install"
#provides=() #provides=()
#backup=() #backup=()
source=("${_githubrepo}::https://github.com/${_githubuser}/${_githubrepo}/archive/refs/tags/${_pkgtagname}.tar.gz") #source=("${_githubrepo}::https://github.com/${_githubuser}/${_githubrepo}/archive/refs/tags/${_pkgtagname}.tar.gz")
#source=("${_githubrepo}::https://github.com/${_githubuser}/${_githubrepo}/releases/download/v${pkgver}/${_githubrepo}-${pkgver}.tar.gz")
sha256sums=('SKIP') sha256sums=('SKIP')
build() { build() {

View File

@ -9,7 +9,8 @@ plugin_isbumpable() {
} }
plugin_getpkgfiles() { plugin_getpkgfiles() {
updatePkgSums "${PKGDIR}"/"${PKGNAME}"/files updatePkgSums "${PKGDIR}/${PKGNAME}/files"
echo "${PKGDIR}/${PKGNAME}/files"
} }
plugin_bump() { plugin_bump() {