summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 47430918bc6abc33c143bc2c993fbb0582c6cfa0 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Maintainer: Christian Erikson               
pkgname=intarna-git 
pkgver=v3.1.5  
pkgrel=1
pkgdesc="Efficient target prediction incorporating accessibility of interaction sites"
arch=('any')
url="https://github.com/BackofenLab/IntaRNA"
license=('GPL')
groups=()

depends=('boost' 'viennarna')
makedepends=('git' 'cmake' )
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")

_tag=${pkgver}
_dir=${pkgname%-git}
source=("${_dir}"::"git+https://github.com/BackofenLab/IntaRNA.git"#tag=${_tag})
md5sums=('SKIP')

# Please refer to the 'USING VCS SOURCES' section of the PKGBUILD man page for
# a description of each element in the source array.

build(){
	cd "$srcdir/${pkgname%-git}"
	set -e -o pipefail

	#test -d config || mkdir config
	# Produce aclocal.m4, so autoconf gets the automake macros it needs
	echo "Creating aclocal.m4..."
	aclocal || exit $?;

	# Produce config.h raw file
	autoheader || exit $?;

	# Produce all the `Makefile.in's, verbosely, and create neat missing things
	# like `libtool', `install-sh', etc.
	automake --add-missing --gnu --copy || exit $?;

	# If there's a config.cache file, we may need to delete it.  
	# If we have an existing configure script, save a copy for comparison.
	if [ -f config.cache ] && [ -f configure ]; then
	  cp configure configure.$$.tmp
	fi

	# Produce ./configure
	echo "Creating configure..."
	autoconf || exit $?;

	./configure --prefix=/usr
	make
}

check() {
	cd "$srcdir/${pkgname%-git}"
	make tests
}

package() {
	cd "$srcdir/${pkgname%-git}"
	make DESTDIR="$pkgdir/" install
}