Advertisement
Guest User

bowtie2 PKGBUILD

a guest
May 10th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.40 KB | None | 0 0
  1. # $Id$
  2. # Maintainer: Grey Christoforo <first name [at] last name [dot] net>
  3.  
  4. pkgname=bowtie2
  5. pkgver=2.2.8
  6. pkgrel=1
  7. pkgdesc="Bowtie 2 is an ultrafast and memory-efficient tool for aligning sequencing reads to long reference sequence."
  8. arch=('x86_64' 'i686')
  9. optdepends=('intel-tbb: faster multithreading')
  10. url="http://bowtie-bio.sourceforge.net/bowtie2"
  11. license=('GPL3')
  12. source=("https://github.com/BenLangmead/${pkgname}/archive/v${pkgver}.tar.gz")
  13. md5sums=('42948ac7744d691a7a643ed94a36ed63')
  14.  
  15. prepare() {
  16.   cd "${srcdir}/${pkgname}-${pkgver}"
  17.   make clean
  18. }
  19.  
  20. build() {
  21.    cd "${srcdir}/${pkgname}-${pkgver}"
  22.    if pacman -Q intel-tbb > /dev/null 2>/dev/null; then
  23.       msg2 "Building with Intel's TBB multithreading support"
  24.       #WITH_TBB=1 make
  25.       # tbb is broken in this release...remove this when fixed
  26.       WITH_TBB=0 make
  27.    else
  28.       msg2 "You haven't installed the intel-tbb package; building without Intel's TBB multithreading support"
  29.       WITH_TBB=0 make
  30.    fi
  31. }
  32.  
  33. package() {
  34.    mkdir -p "${pkgdir}/opt/${pkgname}"
  35.    cp -a "${srcdir}/${pkgname}-${pkgver}"/* "${pkgdir}/opt/${pkgname}"/.
  36.    cd "${srcdir}/${pkgname}-${pkgver}"
  37.    make DESTDIR="${pkgdir}" prefix="/usr" install
  38.    install -Dm644 ${srcdir}/${pkgname}-${pkgver}/MANUAL -t "${pkgdir}/usr/share/doc/${pkgname}"
  39.    install -Dm644 ${srcdir}/${pkgname}-${pkgver}/LICENSE -t "$pkgdir/usr/share/licenses/${pkgname}"
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement