Add the missing shell interpreter line to the postrm script.
This lets apk run the generated post-deinstall hook when fish is removed.
Bump PKG_RELEASE for the package script change.
Fixes: #29348
Signed-off-by: Dharmik Parmar <redacted>
PKG_NAME:=fish
PKG_VERSION:=4.7.1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://github.com/fish-shell/fish-shell/releases/download/$(PKG_VERSION)
endef
define Package/fish/postrm
- rm -rf "$${IPKG_INSTROOT}/$(CONFIGURE_PREFIX)/share/fish/$(PKG_VERSION)"
+#!/bin/sh
+rm -rf "$${IPKG_INSTROOT}/$(CONFIGURE_PREFIX)/share/fish/$(PKG_VERSION)"
endef
$(eval $(call BuildPackage,fish))