# Description: pamlX: the graphical user interface for PAML # URL: http://abacus.gene.ucl.ac.uk/software/paml.html # Maintainer: Petar Petrov, slackalaxy at gmail dot com # Depends on: paml qt4 name=pamlx version=1.3.1 release=2 source=(https://raw.githubusercontent.com/slackalaxy/sources/main/pamlX${version}-src.tgz $name.desktop) build() { cd pamlX${version}-src # Fix the path where pamlX looks for the paml executables, its config # file (if necessary it should be in your home directory) and the # manuals installed by paml. sed -i 's|QApplication::applicationDirPath()|"/usr"|g' mainwindow.cpp sed -i 's|+= "/pamlx.conf"|= "~/.pamlX/pamlx.conf"|g' mainwindow.cpp sed -i 's|/doc/|/share/paml/|g' mainwindow.cpp sed -i 's|/doc/|/share/paml/|g' pamlhistorydialog.cpp # If you want the "Help" menu to use something else than Okular for # viewing the PDF documentation, uncomment the appropriate line below # (or add your own if you want a viewer not listed here): # # sed -i 's|okular|xpdf|g' mainwindow.cpp # Use XPDF sed -i 's|okular|evince|g' mainwindow.cpp # Use Evince # sed -i 's|okular|acroread|g' mainwindow.cpp # Use Adobe Acrobat Reader # sed -i 's|okular|epdfviewer|g' mainwindow.cpp # Use ePDFViewer qmake-qt4 \ QMAKE_CFLAGS="$CFLAGS" \ QMAKE_CXXFLAGS="$CFLAGS" make install -D -m755 pamlX $PKG/usr/bin/pamlX mkdir -p $PKG/usr/share/{applications,pixmaps} cp $SRC/$name.desktop $PKG/usr/share/applications install -D -m644 pamlxlogo.png $PKG/usr/share/pixmaps/pamlX.png }