switch from ugene-bin to source, based on working ugene-git configuration

This commit is contained in:
Jens Staal 2021-12-14 05:52:05 +01:00
parent 83d8de23c3
commit 4a96b4d33f

View file

@ -8,24 +8,37 @@ pkgdesc="A free cross-platform genome analysis suite (binary release)"
arch=('x86_64')
url="http://ugene.net"
license=('GPL')
depends=('libxtst' 'glu' 'qt5-webkit' 'qt5-websockets' 'qt5-svg' 'qt5-script' 'desktop-file-utils')
depends=('libxtst' 'glu' 'qt5-webkit' 'qt5-websockets' 'qt5-svg' 'qt5-script' 'desktop-file-utils' 'qspec' 'opencl-driver')
makedepends=('opencl-headers')
optdepends=('cufflinks' 'bowtie' 'clustalw' 'phyml' 'blast+' 'clustal-omega' 'vcftools' 'mrbayes' 'bwa' 'bedtools'
'tcoffee' 'hmmer' 'snpeff' 'samtools' 'mafft' 'trimmomatic' 'stringtie' 'kraken' 'diamond-aligner'
'python2-cutadapt' 'python' 'java-runtime' 'bowtie2' 'tophat' 'fastqc')
provides=('ugene')
conflicts=('ugene-git')
source=("https://github.com/ugeneunipro/ugene/releases/download/${pkgver}/ugene-${pkgver}-linux-x86-64.tar.gz" "ugene.desktop" "ugene.svg")
sha256sums=('bcd2713842d41d2a02a5b400031e7b5e136ae30fd1a3a00be777d3af1d5d27eb'
'58aeee982faa07913c016323cdded0a4022695c4e313954fdc09c36742013896'
'5a159437635965cae796c968c7297fd098e7f86dcecbe6a97e62950e782641fc')
source=("https://github.com/ugeneunipro/ugene/archive/refs/tags/41.0.tar.gz")
sha256sums=('eab798354f71d8b21e4dff94e76abc48ca0e59e3d5234bf25d269960ef4be0b9')
package() {
mkdir -p "${pkgdir}/usr/"{bin,share/{applications,icons,ugene}}
install -D -m 755 ugene.svg "${pkgdir}/usr/share/icons/ugene.svg"
cd "$srcdir/ugene-$pkgver"
chmod +x *
mv * $pkgdir/usr/share/ugene
ln -s /usr/share/ugene/ugene "$pkgdir"/usr/bin/ugene
install -D -m 755 ${srcdir}/*.desktop "${pkgdir}/usr/share/applications"
build() {
cd "${srcdir}"/ugene-${pkgver}
CXXFLAGS="$CXXFLAGS -Wno-depreceated"
OPENCL_INC_PATH=/usr/include/CL
qmake -r CONFIG+=x64 PREFIX=${pkgdir}/opt/ugene UGENE_OPENCL_DETECTED=1 UGENE_USE_SYSTEM_SQLITE=1 UGENE_USE_BUNDLED_ZLIB=0 .
make -j 4
}
package() {
cd "${srcdir}"/ugene-${pkgver}
make PREFIX=${pkgdir}/opt/ugene install
mkdir -p ${pkgdir}/usr/bin
ln -s /opt/ugene/ugene ${pkgdir}/usr/bin/ugene
mkdir -p ${pkgdir}/usr/share/applications
ln -s /opt/ugene/ugene.desktop ${pkgdir}/usr/share/applications/ugene.desktop
}
post_install() {
update-desktop-database -q
}
post_remove() {
update-desktop-database -q
}