blob: ff373d3a860902cc4915bfff533ccf6f6a370292 (
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
41
42
43
44
|
# Maintainer: Josh Marshall <jrmarsha@mtu.edu>
pkgname=cath-tools-git
pkgver=v0.16.2.r20.g82fb9ac7
pkgrel=2
pkgdesc="Protein structure comparison tools such as SSAP and SNAP."
arch=('i686' 'x86_64')
license=('GPL3')
url="http://orengogroup.info/software/"
depends=('gsl')
makedepends=('gsl' 'cmake' 'ninja' 'make' 'git')
provides=('cath-tools')
conflicts=('cath-tools')
source=("cath-tools-git::git+https://github.com/anadon/cath-tools")
md5sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$pkgname"
cmake -G Ninja -DCMAKE_BUILD_TYPE=RELEASE -D USE_STATIC_GSL:BOOL=FALSE .
ninja
}
check() {
cd "$pkgname"
CATH_TOOLS_BIN_DIR=. prove -l -v perl/t
}
package() {
cd "$pkgname"
#make install
#Install the executables
mkdir -p "$pkgdir/usr/bin"
cp -t "$pkgdir/usr/bin" cath-resolve-hits cath-score-align cath-assign-domains cath-ssap cath-cluster cath-superpose cath-map-clusters cath-refine-align
#Install the libraries
cd source
mkdir "$pkgdir/usr/lib"
cp -t "$pkgdir/usr/lib" libct_options.a libct_resolve_hits.a libct_seq.a libct_biocore.a libct_test.a libct_cath_assign_domains.a libct_uni.a libct_cath_cluster.a libct_cath_refine_align.a libct_cath_score_align.a libct_cath_superpose.a libct_chopping.a libct_clustagglom.a libct_cluster.a libct_common.a libct_display_colour.a
}
|