summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ac3112ce2c2c5a35f9791d6aa3b7f791db2ed347 (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
# Maintainer: Guoyi Zhang <guoyi zhang at malacology dot net>

pkgname=mcscanx
_pkgname=MCScanX
pkgver=2022.11.01
pkgrel=1
pkgdesc="Multiple Collinearity Scan toolkit X version https://doi.org/10.1093/nar/gkr1293"
arch=('x86_64')
url="https://github.com/wyp1125/MCScanX"
license=('BSD')
depends=('java-runtime=11' 'glibc')
makedepends=('make' 'git' 'java-environment=11')
optdepends=('perl')
source=(git+https://github.com/wyp1125/MCScanX.git)
sha256sums=('SKIP')
pkgver(){
  cd $_pkgname
  printf $(TZ=UTC git log --no-walk --pretty="%cd" --decorate=full --date=format-local:%Y.%m.%d | head -n 1)
}

build() {
  cd "$_pkgname"
  make
}

package() {
  cd "$_pkgname"
  for bin in "duplicate_gene_classifier" "MCScanX" "MCScanX_h"
do
	install -D -m 755 $bin $pkgdir/usr/bin/$bin
done
  cd downstream_analyses
  for downstream in *.java *.pl detect_collinear_tandem_arrays dissect_multiple_alignment
do
	install -D -m 755 $downstream $pkgdir/usr/share/$pkgname/$downstream
done

}