arch-pkgbuilder/plugins/manual

24 lines
414 B
Plaintext
Raw Normal View History

2023-01-13 22:04:14 +00:00
#!/bin/bash
plugin_isupdatable() {
return 1
}
plugin_isbumpable() {
return 0
}
2023-01-14 14:55:17 +00:00
plugin_ispushabletoaur() {
return 0
}
2023-01-13 22:04:14 +00:00
plugin_getpkgfiles() {
2023-01-14 11:57:59 +00:00
updatePkgSums "${PKGDIR}/${PKGNAME}/files"
echo "${PKGDIR}/${PKGNAME}/files"
2023-01-13 22:04:14 +00:00
}
plugin_bump() {
local -r PKGREL=$(readSetting "${PKGDIR}"/"${PKGNAME}"/files/PKGBUILD "pkgrel" 0)
sed -i "s/pkgrel=.*/pkgrel=$((PKGREL+1))/" "${PKGDIR}"/"${PKGNAME}"/files/PKGBUILD
}