Skip to content

Commit

Permalink
cleanup: PKGBUILD should use proper variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Almamu committed Jun 7, 2024
1 parent f74a195 commit 4bc5205
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packaging/archlinux/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
}

0 comments on commit 4bc5205

Please sign in to comment.