summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ae1b62fcf38c3cf56f360245effb5b9ff81fe8f6 (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
# Maintainer: malacology

pkgname=popart
pkgver=1.7
pkgrel=1
pkgdesc="free population genetics software"
arch=('x86_64')
url="http://popart.otago.ac.nz/index.shtml"
license=('custom')
depends=('marble' 'lpsolve' 'qt5-base')
makedepends=('git')
source=("git+https://github.com/jessicawleigh/popart-current.git" "popart.desktop")
md5sums=('SKIP'
         '44802b43fa5dba142dbb20cc32e15f45')


package() {
  cd $srcdir/${pkgname}-current
  qmake -makefile LPSOLVEDIR=/usr/bin/lp_solve MARBLEDIR=/usr/bin/marble popart.pro
  make
  install -d "$pkgdir"/usr/{bin,share/{popart,applications}}
  mv "$srcdir"/popart-current/* "$pkgdir"/usr/share/popart
  ln -s /usr/share/popart/popart "$pkgdir"/usr/bin/popart
  install -Dm755 ${srcdir}/popart.desktop ${pkgdir}/usr/share/applications/popart.desktop
}