summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 152bdd867459dc9b33d874e0c85abcb955558f7a (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
# Maintainer: Philipp Joram <phijor AT t-online DOT de>

_appname=fx9860g-screenstreamer
pkgname=${_appname}-qt5
pkgver=25
pkgrel=1
pkgdesc="A tool to display the screen of a connected Casio fx-9860g-family calculator"
arch=('x86_64')
url="http://sourceforge.net/p/fxsdk/code/HEAD/tree/screenstreamer/trunk/"
license=('GPL3')
depends=('qt5-base' 'libusb' 'gcc-libs')
makedepends=('subversion')

source=('svn://svn.code.sf.net/p/fxsdk/code/')
md5sums=('SKIP')

build() {
  cd "${srcdir}/code/screenstreamer/trunk/"

  msg "Patching Makefiles..."
  cp screenstreamer.pro tmp
  sed '/^TARGET/ c TARGET=screenstreamer' tmp |\
    sed '22 i QT += widgets' > screenstreamer.pro

  msg "Building application..."
  qmake-qt5 -o Makefile screenstreamer.pro
  make
}

package() {
  cd "${srcdir}/code/screenstreamer/trunk/"
  install -m 755 -D screenstreamer "${pkgdir}/usr/bin/${_appname}"
}

# vim:set ts=2 sw=2 et: