summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 579e2e212c8ebcddd7b565e9e9c6e8890ccd509d (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
# Maintainer: Kirill Pshenichnyi <pshcyrill@mail.ru>
# Contributor: The Tango Controls community
#              (https://tango-controls.org) <info@tango-controls.org>

pkgname=itango
pkgver=0.1.9
pkgrel=1
pkgdesc="An interactive Tango client."
groups=('tango-controls')
arch=('x86_64' 'armv7h')
url="https://github.com/tango-controls/itango"
license=('GPL3')
depends=('python-pytango>=9.2' 'ipython>=1.0' 'python-qtconsole')
conflicts=('itango-git')
source=("https://gitlab.com/tango-controls/${pkgname}/-/archive/${pkgver}/itango-${pkgver}.tar.gz"
        "setup.patch")
sha256sums=('33e890fcf5355ebd9d7c1bfa3666e13b8846744e9d55125bda8f2a1650595c03'
            'b66fd41e639afc1f215ca8c684ea73e2a393f27a0887bfea00ed15f9ef3c9e7f')



prepare() {
  patch "$pkgname-$pkgver"/setup.py setup.patch
  rm -rf "$pkgname-$pkgver"/pyproject.toml
}

build() {
  cd "$pkgname-$pkgver"
  python setup.py build
}

package() {
  cd "$pkgname-$pkgver"
  python setup.py install --root=$pkgdir/
  ln -s /usr/bin/itango3 $pkgdir/usr/bin/itango
  ln -s /usr/bin/itango3-qt $pkgdir/usr/bin/itango-qt
}