summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-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
}