update
This commit is contained in:
2
PKGBUILD
2
PKGBUILD
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
pkgname=tms-bbt
|
pkgname=tms-bbt
|
||||||
pkgver=1.0
|
pkgver=1.0
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="SmartTMS application suite for managing cinema devices."
|
pkgdesc="SmartTMS application suite for managing cinema devices."
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="https://your.company.com/smarttms"
|
url="https://your.company.com/smarttms"
|
||||||
|
|||||||
@@ -36,12 +36,9 @@ post_remove() {
|
|||||||
echo "Updating desktop database after removal..."
|
echo "Updating desktop database after removal..."
|
||||||
update-desktop-database /usr/share/applications >/dev/null 2>&1 || :
|
update-desktop-database /usr/share/applications >/dev/null 2>&1 || :
|
||||||
|
|
||||||
# 可选:如果 /home/smart/.tms3 目录为空,则删除它。
|
|
||||||
# 这与 RPM 的行为一致,RPM 只会删除它跟踪的文件。
|
|
||||||
# 如果用户在该目录中创建了文件,RPM 不会删除该目录,此脚本也不会。
|
|
||||||
local _app_base_dir="/home/smart/.tms3"
|
local _app_base_dir="/home/smart/.tms3"
|
||||||
if [ -d "${_app_base_dir}" ] && [ -z "$(ls -A "${_app_base_dir}")" ]; then
|
if [ -d "${_app_base_dir}" ]; then
|
||||||
rmdir "${_app_base_dir}" >/dev/null 2>&1 || :
|
rm -rf "${_app_base_dir}" >/dev/null 2>&1 || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "SmartTMS application has been removed."
|
echo "SmartTMS application has been removed."
|
||||||
|
|||||||
Reference in New Issue
Block a user