mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-07-13 12:52:32 +08:00
cleanup: PKGBUILD should use proper variables
This commit is contained in:
parent
f74a19591a
commit
4bc5205034
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user