aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d08749ee0e30def587aa05f531194fd3f51c895b (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: Ben Alex <ben.alex@acegi.com.au>

pkgname=ibc
pkgver=3.20.0
pkgrel=1
pkgdesc='Manages headless Interactive Brokers IB Gateway instances (formerly known as IB Controller)'
replaces=('ib-controller')
arch=('any')
url="https://github.com/IbcAlpha/IBC"
license=('GPL3')
depends=(ib-tws xorg-server-xvfb xorg-server gtk2 libxrender libxtst gsettings-desktop-schemas ttf-dejavu)
makedepends=(unzip)

backup=('etc/ibc/fdemo.ini'
        'etc/ibc/edemo.ini')
source=("https://github.com/IbcAlpha/IBC/releases/download/${pkgver}/IBCLinux-${pkgver}.zip"
        'edemo.ini'
        'fdemo.ini'
        'ibc@.service')
md5sums=('e164d3d3a7d77d0cefde50bdc2a278d3'
         'bb71f8d19adb46d70f231e0a9450ea72'
         'cc3125dc6f5de0a12b6714a59b769e12'
         'e4cc6b5177719502cbcd9ea3a0152eab')

build() {
	cd ${srcdir}
	unzip -o IBCLinux-${pkgver}.zip IBC.jar
}

package() {
	install -Dm644 ${srcdir}/IBC.jar ${pkgdir}/usr/share/java/ibc/IBC.jar
	install -Dm600 ${srcdir}/fdemo.ini ${pkgdir}/etc/ibc/fdemo.ini
	install -Dm600 ${srcdir}/edemo.ini ${pkgdir}/etc/ibc/edemo.ini
	install -Dm644 ${srcdir}/ibc@.service ${pkgdir}/usr/lib/systemd/system/ibc@.service
}