|
@@ -44,8 +44,11 @@ package() {
|
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
|
# create forwarding script
|
|
# create forwarding script
|
|
|
install -d -m755 "${pkgdir}/usr/bin"
|
|
install -d -m755 "${pkgdir}/usr/bin"
|
|
|
- echo "#!/bin/bash" > ${pkgdir}/usr/bin/${_pkgname}
|
|
|
|
|
- echo "cd /opt/${_pkgname}; ./linux-wallpaperengine \$*" >> ${pkgdir}/usr/bin/${_pkgname}
|
|
|
|
|
|
|
+ cat > "${pkgdir}/usr/bin/${_pkgname}" << EOF
|
|
|
|
|
+#!/bin/bash
|
|
|
|
|
+export LD_LIBRARY_PATH="/opt/${_pkgname}/lib:\$LD_LIBRARY_PATH"
|
|
|
|
|
+cd /opt/${_pkgname}; ./${_pkgname} "\$@"
|
|
|
|
|
+EOF
|
|
|
chmod +x ${pkgdir}/usr/bin/${_pkgname}
|
|
chmod +x ${pkgdir}/usr/bin/${_pkgname}
|
|
|
chmod +x ${pkgdir}/opt/${_pkgname}/linux-wallpaperengine
|
|
chmod +x ${pkgdir}/opt/${_pkgname}/linux-wallpaperengine
|
|
|
}
|
|
}
|