minoplhy-crowdsec-notify: fix _subpkgname suffix

This commit is contained in:
minoplhy 2025-05-02 19:36:59 +07:00
parent 45e8a3320d
commit 56955e9220
Signed by: minoplhy
GPG Key ID: 41D406044E2434BF

View File

@ -5,7 +5,7 @@ pkgver=0.0.1
pkgrel=0 pkgrel=0
pkgdesc="Crowdsec Notifications" pkgdesc="Crowdsec Notifications"
url="https://crowdsec.net/" url="https://crowdsec.net/"
arch="all" arch="noarch"
license="MIT" license="MIT"
subpackages="$pkgname-discord:_plugin" subpackages="$pkgname-discord:_plugin"
options="!check" # no test suite identified options="!check" # no test suite identified
@ -21,7 +21,7 @@ package() {
} }
_plugin() { _plugin() {
_subpkgname="${subpkgname:9:(${#subpkgname}-16)}" _subpkgname="${subpkgname#crowdsec-notify-}"
pkgdesc="$pkgname plugin: $_subpkgname" pkgdesc="$pkgname plugin: $_subpkgname"
depends="$pkgname=$pkgver-r$pkgrel" depends="$pkgname=$pkgver-r$pkgrel"
amove etc/crowdsec/notifications/$_subpkgname.yaml amove etc/crowdsec/notifications/$_subpkgname.yaml