diff options
author | WhiredPlanck | 2022-02-08 21:06:27 +0800 |
---|---|---|
committer | WhiredPlanck | 2022-02-08 21:06:27 +0800 |
commit | f2dca4ce2534bb312c83786c6ea9204e7e9bace8 (patch) | |
tree | cb7e65b28c601d7c220346d69b579c1066be8a16 | |
parent | f30219b9106027f9cdb0e8536ea3507f900bc51a (diff) | |
download | aur-f2dca4ce2534bb312c83786c6ea9204e7e9bace8.tar.gz |
astap-bin: modify path to executable in .desktop; create application symlinks
-rw-r--r-- | PKGBUILD | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -48,6 +48,13 @@ package() { install -Dvm644 "${pkgdir}"/usr/lib/"${_pkgname}"/*.txt \ -t "${pkgdir}/usr/share/licenses/${_pkgname}" + mkinfo "Modifying path to executable in desktop file ..." + sed -e "s|Exec=/opt/astap/astap|Exec=astap|g" \ + -i "${pkgdir}"/usr/share/applications/*.desktop + mkinfo "Removeing unneeded resources ..." rm -rv "${pkgdir}"/usr/lib/"${_pkgname}"/*.txt + + mkinfo "Creating application symlinks to /usr/bin ..." + ln -sv ../lib/"${_pkgname}"/"${_pkgname}" "${pkgdir}"/usr/bin/"${_pkgname}" } |