summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cf9d29c0c18f9595e17b89a1fe8b01f69f162c7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Maintainer: Miguel Rasero <skuda21@gmail.com>
#Original opennx PKGBUILD: Tomas Groth tomasgroth.at.yahoo.dk

pkgname=opennx
pkgver=0.16.0.729
pkgrel=3
pkgdesc="A GPL replacement for the NoMachine client"
url="http://opennx.sf.net/"
arch=('i686' 'x86_64')
license=('GPL')
depends=('wxgtk2.8' 'libcups' 'libxext' 'libxft' 'xorg-xauth' 'curl' 'nx-common' 'hicolor-icon-theme')
makedepends=('zip' 'opensc' 'libpulse' 'smbclient' 'libusb-compat')
install=${pkgname}.install
source=(http://downloads.sourceforge.net/project/opennx/opennx/CI-source/opennx-$pkgver.tar.gz)
md5sums=('5271a2430693858803f2e1ca860e5a6c')

build() {
  cd "$srcdir"/opennx*
  ./configure --prefix=/usr \
    --enable-usbip \
    --with-wx-config=wx-config-2.8
  make
}

package() {
  cd "$srcdir"/opennx*
  make DESTDIR="${pkgdir}" install
  make DESTDIR="${pkgdir}" install-man
  
  # fix some file locations
  install -dm755 "${pkgdir}"/usr/share/applications
  cp -aR "${pkgdir}"/usr/share/applnk/xdg/* "${pkgdir}"/usr/share/applications
  rm -rf "${pkgdir}"/usr/share/applnk
  
  sed -i -e "s:Exec=/usr/NX/bin/opennx:Exec=/usr/bin/opennx:" "${pkgdir}"/usr/share/applications/*.desktop

  mkdir "${pkgdir}"/usr/share/icons/hicolor
  cd "${pkgdir}"/usr/share/icons
  find ./ -maxdepth 1 -mindepth 1 -type d -not -name hicolor -exec mv {} hicolor/ \;
}