summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorhawkeye1164772020-06-27 18:33:53 +0200
committerhawkeye1164772020-06-27 18:33:53 +0200
commit93b961ded0a9c27ad4bf59df5fd28029dc17f093 (patch)
tree61c2c5b9cb7b080de235d9eb3eeaa96951958556
parent877ff25e98e5bb68a5cc7bd28b6b818f21728546 (diff)
downloadaur-93b961ded0a9c27ad4bf59df5fd28029dc17f093.tar.gz
Fix
-rw-r--r--PKGBUILD6
1 files changed, 4 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index e371bd15217..6475b227e22 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -22,8 +22,10 @@ package() {
install -d "${pkgdir}"/{usr/{bin,share/{applications,pixmaps}},opt/${_pkgname}}
cp -r ./${_pkgname}/* "${pkgdir}"/opt/${_pkgname}/
- ln -s "/opt/${_pkgname}/${_pkgname}" \
- "$pkgdir/usr/bin/${_pkgname}"
+ install -Dm755 /dev/stdin "$pkgdir/usr/bin/${_pkgname}" <<END
+#!/bin/sh
+exec /opt/${_pkgname}/${_pkgname} "\$@"
+END
install -m644 "${srcdir}"/${_pkgname}.desktop "${pkgdir}"/usr/share/applications/
install -m644 "${srcdir}"/app_icon.png "${pkgdir}"/usr/share/pixmaps/${_pkgname}.png
}