Last active
June 28, 2019 03:22
-
-
Save Gabrielgtx/779cf601ba9250bc4dd7051107970a0a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgname=urserver | |
pkgver=3.4.0.740 | |
pkgrel=1 | |
pkgdesc='Unified Remote Server for Linux. Easily the best way of controlling your PC from your smartphone.' | |
arch=('x86_64') | |
url="https://www.unifiedremote.com" | |
license=('Unified Intents AB') | |
install=$pkgname.install | |
depends=("libx11" "libxext" "libstdc++5") | |
optdepends=('bluez' 'bluez-libs: To Enable the Bluetooth Protocol') | |
source=("https://www.unifiedremote.com/static/builds/server/linux-x64/${pkgver/*./}/${pkgname}-${pkgver}.deb") | |
md5sums=('SKIP') | |
package() { | |
cd "${srcdir}" | |
tar -xzf data.tar.gz | |
#fix desktop file | |
sed -i -e '9,24d;26d' $(find . -name 'urserver.desktop') | |
# opt,usr Sources | |
install -d "${pkgdir}"/opt/urserver | |
cp -r {opt,usr} "${pkgdir}/" | |
# clean up permissions | |
find "${pkgdir}" -type d | xargs -I {} chmod -R 755 "{}" | |
find "${pkgdir}" -type f | xargs -I {} chmod -R 644 "{}" | |
chmod 755 "${pkgdir}/opt/urserver/urserver" | |
chmod 755 "${pkgdir}/opt/urserver/urserver-start" | |
chmod 755 "${pkgdir}/opt/urserver/urserver-stop" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgname=urserver | |
pkgver=3.4.0.742 | |
pkgrel=1 | |
pkgdesc='Unified Remote Server for Linux. Easily the best way of controlling your PC from your smartphone.' | |
arch=('i686') | |
url="https://www.unifiedremote.com" | |
license=('Unified Intents AB') | |
install=$pkgname.install | |
depends=("libx11" "libxext" "libstdc++5") | |
optdepends=('bluez' 'bluez-libs: To Enable the Bluetooth Protocol') | |
source=("https://www.unifiedremote.com/static/builds/server/linux-x86/${pkgver/*./}/${pkgname}-${pkgver}.deb") | |
md5sums=('SKIP') | |
package() { | |
cd "${srcdir}" | |
tar -xzf data.tar.gz | |
#fix desktop file | |
sed -i -e '9,24d;26d' $(find . -name 'urserver.desktop') | |
# opt,usr Sources | |
install -d "${pkgdir}"/opt/urserver | |
cp -r {opt,usr} "${pkgdir}/" | |
# clean up permissions | |
find "${pkgdir}" -type d | xargs -I {} chmod -R 755 "{}" | |
find "${pkgdir}" -type f | xargs -I {} chmod -R 644 "{}" | |
chmod 755 "${pkgdir}/opt/urserver/urserver" | |
chmod 755 "${pkgdir}/opt/urserver/urserver-start" | |
chmod 755 "${pkgdir}/opt/urserver/urserver-stop" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
post_install() { | |
gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor | |
echo " | |
The way to start the server is: | |
/opt/urserver/urserver --daemon | |
to start automatically, run | |
menu>Internet>Unified Remote | |
To Run Config Wizard, Visit in your browser: | |
localhost:9510/web | |
link for port configurations: | |
http://wiki.unifiedremote.com/wiki/Configuration:Routers_and_Ports | |
For more options: | |
/opt/urserver/urserver --help" | |
} | |
post_upgrade() { | |
post_install | |
} | |
post_remove() { | |
gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment