updated on Tue Jan 10 16:09:17 UTC 2012
[aur-mirror.git] / mega / PKGBUILD
blobf90ef307587c6676a0e2e49bdca29b7b9520330b
1 # Maintainer: petRUShka <petrushkin[at]yandex.ru>
2 pkgname=mega
3 pkgver=5110426
4 pkgrel=2
5 pkgdesc="Molecular Evolutionary Genetics Analysis (MEGA) is an integrated tool for conducting automatic and manual sequence alignment, inferring phylogenetic trees, mining web-based databases, estimating rates of molecular evolution, inferring ancestral sequences, and testing evolutionary hypotheses."
6 url="http://www.megasoftware.net/"
7 arch=('x86_64' 'i686')
8 license=('proprietary')
9 depends=()
10 #optdepends=('java-runtime')
11 makedepends=('wine' 'wine_gecko')
12 conflicts=()
13 replaces=()
14 backup=()
15 #install='foo.install'
16 source=("http://update.megasoftware.net/deb/pool/main/m/mega/${pkgname}_${pkgver}_all.deb")
17 md5sums=('4039adbaeb8ff9ef58445df879b568dc')
19 #build() {
20 #  cd "${srcdir}/${pkgname}-${pkgver}"
21 #  cmake ./ -DCMAKE_INSTALL_PREFIX=/usr
22 #  make
25 package() {
26   cd "${srcdir}/"
27 #  make DESTDIR="${pkgdir}" install
28 #  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
30   msg "Extracting the MEGA package"
31   ar -xv ${pkgname}_${pkgver}_all.deb
32   tar -xvf data.tar.gz
33   msg2 "Done extracting!"
35   msg "Preparing install"
36   install -d "$pkgdir"/usr/{bin,local/applications}
37   mv -v usr/local/bin "$pkgdir"/usr/local/bin
38   msg2 "Done preparing!"
40   msg "Actual installation"
41   ln -sv /usr/local/bin/mega $pkgdir/usr/bin/
42   install -D "$pkgdir/usr/local/bin/MEGA/Installers/MEGA.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
44   msg2 "Installation finished!"
47 # vim:set ts=2 sw=2 et: