Commits

Josh VanderLinden committed b9a343d

Trying to make the package work for 32-bit installs

Comments (0)

Files changed (1)

 pkgver=3.5.0
 pkgrel=1
 pkgdesc="NoMachine nxclient, nxnode, and nxserver in one package"
-arch=('x86_64')
+arch=('i686' 'x86_64')
 url="http://www.nomachine.com/"
 license=('custom:nomachine')
 depends=('psmisc' 'tigervnc')
 provides=('nxclient' 'nxnode' 'nxserver')
 conflicts=('freenx' 'nxclient')
 install=nx-all.install
-source=(
-  "http://64.34.173.142/download/3.5.0/Linux/nxclient-3.5.0-7.${CARCH}.tar.gz"
-  "http://64.34.173.142/download/3.5.0/Linux/nxnode-3.5.0-9.${CARCH}.tar.gz"
-  "http://64.34.173.142/download/3.5.0/Linux/FE/nxserver-3.5.0-11.${CARCH}.tar.gz"
-  "LICENSE"
-  "nxsensor.service"
-  "nxserver.service"
-  "nx-all.install"
-  "nxnode-arch.patch"
-  "nxserver-arch.patch"
-)
-md5sums=('3d3ba27c7bf78f206964237892590140'
-         '14f9b86a0a866bf9535414c25fa2f299'
-         '523a962b69c433791c70aeb3a50bad08'
-         '521a98ac0d4b2c88887acf98b3182aff'
-         '246426c32a2a05c7d8e5cb7a30c03acc'
-         'b62b33e6a553d4675ae8c011ae14b63b'
-         '3df0ec49cf305b5fc9f1ce9ea80fd0cd'
-         'cdebef58a20442e825a654a7cb2f0f5e'
-         'e33d73b40c1d8467bbf0c273e2026cc8')
+
+if [ "${CARCH}" = "x86_64" ]; then
+  source=(
+    "http://64.34.173.142/download/3.5.0/Linux/nxclient-3.5.0-7.x86_64.tar.gz"
+    "http://64.34.173.142/download/3.5.0/Linux/nxnode-3.5.0-9.x86_64.tar.gz"
+    "http://64.34.173.142/download/3.5.0/Linux/FE/nxserver-3.5.0-11.x86_64.tar.gz"
+    "LICENSE"
+    "nxsensor.service"
+    "nxserver.service"
+    "nx-all.install"
+    "nxnode-arch.patch"
+    "nxserver-arch.patch"
+  )
+  md5sums=('3d3ba27c7bf78f206964237892590140'
+           '14f9b86a0a866bf9535414c25fa2f299'
+           '523a962b69c433791c70aeb3a50bad08'
+           '521a98ac0d4b2c88887acf98b3182aff'
+           '246426c32a2a05c7d8e5cb7a30c03acc'
+           'b62b33e6a553d4675ae8c011ae14b63b'
+           '3df0ec49cf305b5fc9f1ce9ea80fd0cd'
+           'cdebef58a20442e825a654a7cb2f0f5e'
+           'e33d73b40c1d8467bbf0c273e2026cc8')
+else
+  source=(
+    "http://64.34.173.142/download/3.5.0/Linux/nxclient-3.5.0-7.i386.tar.gz"
+    "http://64.34.173.142/download/3.5.0/Linux/nxnode-3.5.0-9.i386.tar.gz"
+    "http://64.34.173.142/download/3.5.0/Linux/FE/nxserver-3.5.0-11.i386.tar.gz"
+    "LICENSE"
+    "nxsensor.service"
+    "nxserver.service"
+    "nx-all.install"
+    "nxnode-arch.patch"
+    "nxserver-arch.patch"
+  )
+  md5sums=('3d3ba27c7bf78f206964237892590140'
+           '14f9b86a0a866bf9535414c25fa2f299'
+           '523a962b69c433791c70aeb3a50bad08'
+           '521a98ac0d4b2c88887acf98b3182aff'
+           '246426c32a2a05c7d8e5cb7a30c03acc'
+           'b62b33e6a553d4675ae8c011ae14b63b'
+           '3df0ec49cf305b5fc9f1ce9ea80fd0cd'
+           'cdebef58a20442e825a654a7cb2f0f5e'
+           'e33d73b40c1d8467bbf0c273e2026cc8')
+fi
 
 package() {
   install -D LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"