1 # Maintainer: leepesjee <lpeschier at xs4all dot nl>
6 pkgdesc="A visualization tool for biomolecular structures, sequences, and sequence alignments."
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
18 md5sums=('7f6dcedc378dfd726933912b7ce6cb1e'
19 'abf0f63132f270c363531ad0b486aac3'
20 '76991ac1558545183170568f8af5e015'
21 'bc4daf71c6eacce269edfd017de05cef'
22 '6a4c7b3ffcf331341e3cdb3a6b71ee10'
23 'e8bf6ba0d335e27c312bc39ff7b485b9'
24 '8cdf51908efacc8a8b055593fa063d09')
27 # make the C++ toolkit
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
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
46 # install a start script in /usr/bin
48 install -dv -m755 $pkgdir/usr/bin
49 install -m755 cn3d $pkgdir/usr/bin
52 install -dv -m755 $pkgdir/usr/share/licenses/$pkgname
53 install -m644 ncbi.license $pkgdir/usr/share/licenses/$pkgname
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/