summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 287c4b5fcc692e811b6e6f84e89bb952d341863d (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
# Maintainer: Marcos Ferreira <merkkp at gmail dot com>

pkgname="iqoption-bin"
pkgver=1247.3.5090
pkgrel=1
pkgdesc="Ultimate trading experience"
arch=("x86_64")
url="https://iqoption.com"
license=("custom:iqoption")
depends=("sdl2" "sdl2_image" "sdl2_mixer" "mesa" "libnotify")
makedepends=("binutils" "tar" "sed")
source=("iqoption.deb::https://updates.iqoption.com/api/v1/build/current/pkg/LinuxGL")
sha256sums=("SKIP")

prepare() {
  tar xf control.tar.gz
}

pkgver() {
  cat control | head -n 2 | tail -n 1 | cut -d' ' -f 2
}

package() {
  tar xf data.tar.xz -C "${pkgdir}/"
  _desktop_file=${pkgdir}/usr/share/applications/iqoption.desktop
  sed -i 's/Exec\S*/Exec=sh -c "SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0 IQOption"/' $_desktop_file
}

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