Bladeren bron

cleanup: PKGBUILD should use proper variables

Almamu 2 jaren geleden
bovenliggende
commit
4bc5205034
1 gewijzigde bestanden met toevoegingen van 5 en 5 verwijderingen
  1. 5 5
      packaging/archlinux/PKGBUILD

+ 5 - 5
packaging/archlinux/PKGBUILD

@@ -27,7 +27,7 @@ pkgver() {
 build() {
     cmake -B build -S "$pkgname" \
         -DCMAKE_BUILD_TYPE='Release' \
-        -DCMAKE_INSTALL_PREFIX='/opt/linux-wallpaperengine' \
+        -DCMAKE_INSTALL_PREFIX="/opt/${_pkgname}" \
         -Wno-dev
     cmake --build build
 }
@@ -36,8 +36,8 @@ package() {
     DESTDIR="$pkgdir" cmake --install build
     # create forwarding script
     install -d -m755 "${pkgdir}/usr/bin"
-    echo "#!/bin/bash" > $pkgdir/usr/bin/linux-wallpaperengine
-    echo "cd /opt/linux-wallpaperengine; ./linux-wallpaperengine \$*" >> $pkgdir/usr/bin/linux-wallpaperengine
-    chmod +x $pkgdir/usr/bin/linux-wallpaperengine
-    chmod +x $pkgdir/opt/linux-wallpaperengine/linux-wallpaperengine
+    echo "#!/bin/bash" > ${pkgdir}/usr/bin/${_pkgname}
+    echo "cd /opt/${_pkgname}; ./linux-wallpaperengine \$*" >> ${pkgdir}/usr/bin/${_pkgname}
+    chmod +x ${pkgdir}/usr/bin/${_pkgname}
+    chmod +x ${pkgdir}/opt/${_pkgname}/linux-wallpaperengine
 }