updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / cn3d / PKGBUILD
blob05b7af7b5f80f2192833c69eae8c2c31bad35439
1 # Maintainer: leepesjee <lpeschier at xs4all dot nl>
2 # Contributor: Corex
3 pkgname=cn3d
4 pkgver=4.2
5 pkgrel=4
6 pkgdesc="A visualization tool for biomolecular structures, sequences, and sequence alignments."
7 arch=('i686' 'x86_64')
8 license=('custom')
9 url="http://www.ncbi.nlm.nih.gov/Structure/CN3D/cn3d.shtml"
10 depends=('wxwidgets-ncbi>=2.8.10-2')
11 source=(ftp://ftp.ncbi.nlm.nih.gov/toolbox/ncbi_tools/ncbi.tar.gz
12         ftp://ftp.ncbi.nlm.nih.gov/toolbox/ncbi_tools++/CURRENT/ncbi_cxx--May_15_2009.tar.gz
13         context.cpp1.patch
14         context.cpp2.patch
15         cn3d
16         cn3d.desktop
17         ncbi.license)
18 md5sums=('7f6dcedc378dfd726933912b7ce6cb1e'
19          'abf0f63132f270c363531ad0b486aac3'
20          '76991ac1558545183170568f8af5e015'
21          'bc4daf71c6eacce269edfd017de05cef'
22          '6a4c7b3ffcf331341e3cdb3a6b71ee10'
23          'e8bf6ba0d335e27c312bc39ff7b485b9'
24          '8cdf51908efacc8a8b055593fa063d09')
26 build() {
27 # make the C++ toolkit
28   cd $srcdir/ncbi_cxx*
29   patch -Np1 -i ../../context.cpp1.patch
30   patch -Np1 -i ../../context.cpp2.patch
31   ./configure --prefix=/$pkgdir/usr --without-debug --with-wxwidgets=/opt/ncbi/wxwidgets-ncbi --with-mesa --with-opengl \
32               --without-internal --without-boost --without-ctools 2>&1 | tee ../out.confcpp.txt
33   make
34   cd ./GCC*-Release*/build/app/cn3d
35   make LDFLAGS="-lGLU -lGL"
37 # install the package in /opt
38   install -dv -m755 $pkgdir/opt/ncbi/data
39   install -dv -m755 $pkgdir/opt/ncbi/bin
40   install -m755 $srcdir/ncbi_cxx*/GCC*-Release*/bin/$pkgname $pkgdir/opt/ncbi/bin
41   install -m644 $srcdir/ncbi/data/* $pkgdir/opt/ncbi/data
42   install -m644 $srcdir/ncbi_cxx*/src/app/$pkgname/cn3d_commands.htb $pkgdir/opt/ncbi/bin
43   cd $pkgdir/opt/ncbi/bin
44   ln -s ../data
46 # install a start script in /usr/bin
47   cd $startdir
48   install -dv -m755 $pkgdir/usr/bin
49   install -m755 cn3d $pkgdir/usr/bin
51 # Install license
52   install -dv -m755 $pkgdir/usr/share/licenses/$pkgname
53   install -m644 ncbi.license $pkgdir/usr/share/licenses/$pkgname
55 # install icon
56   install -m755 -d ${pkgdir}/usr/share/pixmaps
57   install -m644 $srcdir/ncbi_cxx*/src/app/${pkgname}/cn3d42App.xpm ${pkgdir}/usr/share/pixmaps
58   install -m755 -d ${pkgdir}/usr/share/applications
59   install -m644 ${pkgname}.desktop ${pkgdir}/usr/share/applications/