summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3d1363a4d186582fd7d25b923c1188f972a7526d (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
# Maintainer: Tomasz Zok <tomasz.zok [at] gmail.com>
pkgname=x3dna
_pkgver=2.3
pkgver=${_pkgver}_20161116
pkgrel=1
pkgdesc="3DNA is a versatile, integrated software system for the analysis, rebuilding and visualization of three-dimensional nucleic-acid-containing structures. Please see: http://forum.x3dna.org/site-announcements/download-instructions/"
arch=('x86_64')
url="http://x3dna.org/"
license=('custom')
depends=('ruby')
source=("http://x3dna.bio.columbia.edu/downloads/v${_pkgver}/${pkgname}-v${_pkgver}-linux-64bit.tar.gz")
md5sums=('0f517e695655374e37159752fc9f008e')

package() {
    cd ${pkgname}-v${_pkgver}/
    install -d ${pkgdir}/etc/profile.d/
    install -d ${pkgdir}/opt/${pkgname}-v${_pkgver}/
    install -d ${pkgdir}/usr/bin/

    # fix conflict with hunspell package
    mv bin/analyze bin/analyze-x3dna

    install bin/* ${pkgdir}/usr/bin/
    cp -R config doc examples fiber lib np_recipes perl_scripts src ${pkgdir}/opt/${pkgname}-v${_pkgver}/
    echo "export X3DNA=/opt/${pkgname}-v${_pkgver}" > "$pkgdir/etc/profile.d/x3dna.sh"
}