summarylogtreecommitdiffstats
diff options
context:
space:
mode:
author0xzer0x2023-12-08 10:45:56 +0200
committer0xzer0x2023-12-08 10:45:56 +0200
commit5f69cf2439e7feab6f43909325a97bb9b6508c44 (patch)
treea7ddb5ec47f33b7d01da703eb526033e97da77ee
parentefc0ba2936d480e9761a40db7c37a284020d2883 (diff)
downloadaur-5f69cf2439e7feab6f43909325a97bb9b6508c44.tar.gz
remove sudo from install commands
-rw-r--r--PKGBUILD12
1 files changed, 6 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index a55d19c78ad3..8a2c11d83e56 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -26,17 +26,17 @@ build() {
git checkout v$pkgver
cmake -S ./ \
-G Ninja \
- -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_PREFIX="${pkgdir}/usr" \
-DCMAKE_BUILD_TYPE=Release
ninja
}
package() {
cd "${srcdir}/${_pkgname}"
- sudo cmake --install .
- sudo install -D dist/xdg/io.github._0xzer0x.qurancompanion.desktop ${pkgdir}/usr/share/applications/
- sudo install -Dm644 dist/xdg/logo64.png ${pkgdir}/usr/share/icons/hicolor/64x64/apps/io.github._0xzer0x.qurancompanion.png
- sudo install -Dm644 dist/xdg/logo128.png ${pkgdir}/usr/share/icons/hicolor/128x128/apps/io.github._0xzer0x.qurancompanion.png
- sudo install -Dm644 dist/xdg/logo256.png ${pkgdir}/usr/share/icons/hicolor/256x256/apps/io.github._0xzer0x.qurancompanion.png
+ cmake --install .
+ install -D dist/xdg/io.github._0xzer0x.qurancompanion.desktop ${pkgdir}/usr/share/applications/
+ install -Dm644 dist/xdg/logo64.png ${pkgdir}/usr/share/icons/hicolor/64x64/apps/io.github._0xzer0x.qurancompanion.png
+ install -Dm644 dist/xdg/logo128.png ${pkgdir}/usr/share/icons/hicolor/128x128/apps/io.github._0xzer0x.qurancompanion.png
+ install -Dm644 dist/xdg/logo256.png ${pkgdir}/usr/share/icons/hicolor/256x256/apps/io.github._0xzer0x.qurancompanion.png
}