mirror of
https://github.com/archlinux/aur.git
synced 2026-03-14 23:16:48 +01:00
your commit message
This commit is contained in:
parent
84bd3fddd8
commit
e26df752cd
2 changed files with 17 additions and 5 deletions
1
.SRCINFO
1
.SRCINFO
|
|
@ -7,6 +7,7 @@ pkgbase = zed-cn
|
|||
license = custom:"Copyright (c) 2015 Abner Lee All Rights Reserved."
|
||||
provides = zed-cn
|
||||
conflicts = zed-cn
|
||||
options = !debug
|
||||
source = zed-cn-20251010.tar.gz::https://github.com/TC999/zed-loc/releases/download/20251010/zed-linux-x86_64.tar.gz
|
||||
sha512sums = SKIP
|
||||
|
||||
|
|
|
|||
21
PKGBUILD
21
PKGBUILD
|
|
@ -32,11 +32,22 @@ package() {
|
|||
# 如果需要:添加可执行文件到系统路径
|
||||
install -d "$pkgdir/usr/bin"
|
||||
ln -s "/opt/$pkgname/bin/zed" "$pkgdir/usr/bin/zed"
|
||||
# 安装图标文件夹
|
||||
if [ -d "$srcdir/$_path.app/share/icons" ]; then
|
||||
install -d "$pkgdir/usr/share/icons"
|
||||
cp -r "$srcdir/$_path.app/share/icons" "$pkgdir/usr/share/"
|
||||
fi
|
||||
# 安装图标文件
|
||||
_icon_sizes=("512x512" "1024x1024")
|
||||
for size in "${_icon_sizes[@]}"; do
|
||||
if [ -f "$srcdir/$_path.app/share/icons/hicolor/$size/apps/zed.png" ]; then
|
||||
install -Dm644 "$srcdir/$_path.app/share/icons/hicolor/$size/apps/zed.png" \
|
||||
"$pkgdir/usr/share/icons/hicolor/$size/apps/zed-cn.png"
|
||||
fi
|
||||
done
|
||||
# 如果需要:桌面文件
|
||||
install -Dm644 "$srcdir/$_path.app/share/applications/$_path.desktop" "$pkgdir/usr/share/applications/zed-cn.desktop"
|
||||
|
||||
# 移除调试符号(避免生成debug包)
|
||||
find "$pkgdir" -name "*.debug" -delete
|
||||
strip --strip-all "$pkgdir/opt/$pkgname/bin/zed" 2>/dev/null || true
|
||||
strip --strip-all "$pkgdir/opt/$pkgname/libexec/zed-editor" 2>/dev/null || true
|
||||
|
||||
}
|
||||
# 明确指定不构建debug包
|
||||
options=('!debug')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue