summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7f5d40126daff4cf3d35d06556f91e4f17fcc2c0 (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
# Maintainer: Jens Staal <staal1978@gmail.com>
pkgname=ugene-git
pkgver=1.31.0.qt.5.7.r431.g13c2ccc2f
pkgrel=1
pkgdesc="A free cross-platform genome analysis suite."
arch=('x86_64')
url="http://ugene.unipro.ru/"
license=('GPL')
depends=('libxtst' 'glu' 'qt5-webkit' 'qt5-svg' 'qt5-script' 'desktop-file-utils')
provides=('ugene' 'ugene-bin')
conflicts=('ugene' 'ugene-bin')
replaces=('ugene' 'ugene-bin')
source=('ugene::git+https://github.com/ugeneunipro/ugene.git')
sha256sums=('SKIP')

build() {
  cd "${srcdir}"/ugene
  #make sure that the wanted branch is active
  git checkout master
  qmake CONFIG+=x64 PREFIX=/usr -r
  make
}

pkgver() {
  cd "${srcdir}"/ugene
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/; s/-/./g'
}

package() {
  cd "${srcdir}"/ugene
  make INSTALL_ROOT="$pkgdir" install
}

post_install() {
  update-desktop-database -q
}
post_remove() {
  update-desktop-database -q
}