summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Engestrom2019-06-26 13:31:38 +0100
committerEric Engestrom2019-06-26 13:31:38 +0100
commitffe991768b94ab1cdc21c4094c34e081e2cdeff3 (patch)
tree3f4f0cd3baa0d47dd5bea40c11b96a93d967ea99
parentc20828ed263a7b62d722eb1c320c9800a4eb74aa (diff)
downloadaur-ffe991768b94ab1cdc21c4094c34e081e2cdeff3.tar.gz
move desktop & icon to standard locations
-rw-r--r--PKGBUILD12
1 files changed, 10 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index aa613241be0..491642358ef 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -32,10 +32,18 @@ package() {
ln -s /opt/"${pkgname}"/gfxbench_gl "${pkgdir}"/usr/bin/"${pkgname}"
install -dm755 "${pkgdir}"/usr/share/licenses/"${pkgname}"
- ln -s /opt/"${pkgname}"/copyright "${pkgdir}"/usr/share/licenses/"${pkgname}"
+ mv "${pkgdir}"/opt/"${pkgname}"/copyright "${pkgdir}"/usr/share/licenses/"${pkgname}"
+
+ install -Dm644 -t "${pkgdir}"/usr/share/applications/ "${pkgdir}"/opt/"${pkgname}"/gfxbench_gl.desktop
+ rm "${pkgdir}"/opt/"${pkgname}"/gfxbench_gl.desktop
+
+ install -Dm644 -t "${pkgdir}"/usr/share/icons/hicolor/128x128/apps/ "${pkgdir}"/opt/"${pkgname}"/gfxbench_gl.png
+ rm "${pkgdir}"/opt/"${pkgname}"/gfxbench_gl.png
# Fix path
- sed -i "s#${pkgdir}##" "${pkgdir}"/opt/"${pkgname}"/gfxbench_gl.desktop
+ sed -i "s#${pkgdir}##" "${pkgdir}"/usr/share/applications/gfxbench_gl.desktop
+ sed -i 's#^Icon=.*$#Icon=/usr/share/icons/hicolor/128x128/apps/gfxbench_gl.png#' \
+ "${pkgdir}"/usr/share/applications/gfxbench_gl.desktop
# Remove unnecessary local copies of libs
rm "${pkgdir}"/opt/"${pkgname}"/libQt5*