diff options
author | fxd | 2015-06-16 09:44:29 +0200 |
---|---|---|
committer | fxd | 2015-06-16 09:44:29 +0200 |
commit | ee4cc3836c6fbda839081638c0441d3e0a9ac559 (patch) | |
tree | 6c405338167812f20a01e017d80be815d6b162c4 | |
download | aur-ee4cc3836c6fbda839081638c0441d3e0a9ac559.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 32 | ||||
-rw-r--r-- | nm-ent-client.install | 29 |
3 files changed, 75 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..afbff4f934ca --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = nomachine-enterprise-client + pkgdesc = Remote desktop application + pkgver = 4.6.4 + pkgrel = 1 + url = http://www.nomachine.com + install = nm-ent-client.install + arch = x86_64 + arch = i686 + license = custom:"Copyright 2002-2015 NoMachine S.a r.l." + conflicts = nomachine nxmanager nxwebplayer nxserver nxnode nxclient + options = !strip + +pkgname = nomachine-enterprise-client + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7dcf345799ee --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: FD <fxd@seznam.cz> + +pkgname=nomachine-enterprise-client +pkgver=4.6.4 +pkgrel=1 +x64_rel=14 +i386_rel=17 +pkgdesc="Remote desktop application" +url="http://www.nomachine.com" +license=('custom:"Copyright 2002-2015 NoMachine S.a r.l."') +arch=('x86_64' 'i686') +options=('!strip') +conflicts=('nomachine nxmanager nxwebplayer nxserver nxnode nxclient') +install=nm-ent-client.install + +if [ "${CARCH}" = "x86_64" ]; then + sha256sums=('e3149a4a0a6ba9f6e29458d589345873e0c22998a3c84af4e90e7435f53926b7') + _carch=_x86_64 + source=("http://download.nomachine.com/download/4.6/Linux/${pkgname}_${pkgver}_${x64_rel}${_carch}.tar.gz") +elif [ "${CARCH}" = "i686" ]; then + sha256sums=('b251fe7cd8662b64178e32624e58e41bb4e71acfec3e8d2d2419a6c54cb39174') + _carch=_i686 + source=("http://download.nomachine.com/download/4.6/Linux/${pkgname}_${pkgver}_${i386_rel}${_carch}.tar.gz") +fi + +package() +{ + cd "${srcdir}" + install -d "${pkgdir}/usr/" + cp -a NX "${pkgdir}/usr/NX" +} + diff --git a/nm-ent-client.install b/nm-ent-client.install new file mode 100644 index 000000000000..ec89056a875e --- /dev/null +++ b/nm-ent-client.install @@ -0,0 +1,29 @@ +post_install() +{ + echo "creating file /etc/fedora-release (temporarily)..." + touch /etc/fedora-release + echo "Running NX post_install script..." + /usr/NX/nxclient --install fedora + echo "deleting file /etc/fedora-release..." + rm /etc/fedora-release +} + +pre_remove() +{ + echo "Running NX pre_remove script..." + /usr/NX/scripts/setup/nxclient --uninstall fedora +} + +post_remove() +{ + echo "Removing /usr/NX..." + rm -rf /usr/NX +} + +pre_upgrade() { + pre_remove +} + +post_upgrade() { + post_install +} |