# Description: Command line access to Entrez databases # URL: https://www.ncbi.nlm.nih.gov/books/NBK179288/ # Maintainer: Petar Petrov, slackalaxy at gmail dot com # Depends on: name=ncbi-edirect version=23.4.20250110 release=1 source=(https://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect/versions/$version/edirect-$version.tar.gz https://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect/versions/$version/rchive.Linux.gz https://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect/versions/$version/transmute.Linux.gz https://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect/versions/$version/xtract.Linux.gz) build() { cd edirect # Move these to their proper place mkdir -p $PKG/usr/share/edirect mv ./{cmd,eutils,help,data} $PKG/usr/share/edirect mv readme.pdf $PKG/usr/share/edirect/manual.pdf mkdir -p $PKG/usr/lib/edirect cp -a extern/* $PKG/usr/lib/edirect # remove these rm -rf ./{CA.pm,cacert.pem,Mozilla-CA.tar.gz,README,LICENSE,extern} mkdir -p $PKG/usr/bin cp -a * $PKG/usr/bin gunzip -c $SRC/rchive.Linux.gz > $PKG/usr/bin/rchive.Linux gunzip -c $SRC/transmute.Linux.gz > $PKG/usr/bin/transmute.Linux gunzip -c $SRC/xtract.Linux.gz > $PKG/usr/bin/xtract.Linux chmod 755 $PKG/usr/bin/* }