dev
This commit is contained in:
parent
0ad6dbf3a9
commit
998913c5a2
@ -68,7 +68,7 @@ updatePkgSums() { # $1=FILES
|
||||
local -r FILES=${1}
|
||||
local TMPDIR=""
|
||||
TMPDIR=$(mktemp -d)
|
||||
cp -r "${FILES}/*" "${TMPDIR}"
|
||||
cp -r "${FILES}"/* "${TMPDIR}"
|
||||
chown -R pkgbuilder "${TMPDIR}"
|
||||
sudo -u pkgbuilder updpkgsums "${TMPDIR}"/PKGBUILD
|
||||
cp -r "${TMPDIR}"/PKGBUILD "${FILES}/"
|
||||
|
@ -1,25 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
custom_plugin_isupdatable() {
|
||||
plugin_isupdatable() {
|
||||
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
|
||||
}
|
||||
|
||||
custom_plugin_getpkgfiles() {
|
||||
return 1
|
||||
}
|
||||
|
||||
custom_plugin_bump() {
|
||||
return 1
|
||||
}
|
||||
|
||||
custom_plugin_getlatestversion() {
|
||||
return 1
|
||||
}
|
||||
|
||||
custom_plugin_update() {
|
||||
plugin_update() {
|
||||
return 1
|
||||
}
|
@ -17,7 +17,8 @@ url="https://github.com/${_githubuser}/${_githubrepo}"
|
||||
#install="${pkgname}.install"
|
||||
#provides=()
|
||||
#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')
|
||||
|
||||
build() {
|
||||
|
@ -9,7 +9,8 @@ plugin_isbumpable() {
|
||||
}
|
||||
|
||||
plugin_getpkgfiles() {
|
||||
updatePkgSums "${PKGDIR}"/"${PKGNAME}"/files
|
||||
updatePkgSums "${PKGDIR}/${PKGNAME}/files"
|
||||
echo "${PKGDIR}/${PKGNAME}/files"
|
||||
}
|
||||
|
||||
plugin_bump() {
|
||||
|
Loading…
Reference in New Issue
Block a user