Skip to content

Commit

Permalink
trnascan-se: add aarch64/arm64 build (#50996)
Browse files Browse the repository at this point in the history
  • Loading branch information
mencian authored Sep 27, 2024
1 parent d7ed8ce commit 4b6fcc8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
4 changes: 4 additions & 0 deletions recipes/trnascan-se/build.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
#!/bin/bash

export M4="${BUILD_PREFIX}/bin/m4"
export INCLUDE_PATH=${PREFIX}/include
export LIBRARY_PATH=${PREFIX}/lib
export LDFLAGS="${LDFLAGS} -L${PREFIX}/lib"
export CFLAGS="${CFLAGS} -O3 -I${PREFIX}/include ${LDFLAGS}"

sed -i.bak '1 s|^.*$|#!/usr/bin/env perl|g' tRNAscan-SE.src
sed -i.bak '1 s|^.*$|#!/usr/bin/env perl|g' src/instman.pl
rm -rf *.bak
rm -rf src/*.bak

autoreconf -if
./configure CC="${CC}" CFLAGS="${CFLAGS}" --prefix="${PREFIX}"

make
Expand Down
20 changes: 14 additions & 6 deletions recipes/trnascan-se/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
{% set name = "tRNAscan-SE" %}
{% set version = "2.0.12" %}
{% set sha256 = "96fa4af507cd918c1c623763d9260bd6ed055d091662b44314426f6bbf447251" %}
{% set sha256 = "4b255c2c5e0255381194166f857ab2ea21c55aa7de409e201333ba615aa3dc61" %}

package:
name: {{ name|lower }}
version: {{ version }}

build:
number: 0
number: 1
run_exports:
- {{ pin_subpackage('trnascan-se', max_pin="x") }}

source:
url: http://trna.ucsc.edu/software/trnascan-se-{{ version }}.tar.gz
url: https://github.com/UCSC-LoweLab/tRNAscan-SE/archive/refs/tags/v{{ version }}.tar.gz
sha256: {{ sha256 }}
patches:
- patches/libdir.patch
Expand All @@ -21,6 +23,7 @@ requirements:
- make
- autoconf
- automake
- libtool
host:
- perl
run:
Expand All @@ -32,13 +35,18 @@ test:
- tRNAscan-SE -h

about:
home: "http://lowelab.ucsc.edu/tRNAscan-SE/"
license: GPLv3
home: "https://lowelab.ucsc.edu/tRNAscan-SE/"
license: "GPL-3.0-or-later"
license_family: GPL3
license_file: LICENSE
summary: tRNA detection in large-scale genomic sequences
doc_url: "http://lowelab.ucsc.edu/tRNAscan-SE/help.html"
doc_url: "https://lowelab.ucsc.edu/tRNAscan-SE/help.html"
dev_url: "https://github.com/UCSC-LoweLab/tRNAscan-SE"

extra:
identifiers:
- biotools:trnascan-se
- doi:10.1093/nar/gkab688
additional-platforms:
- linux-aarch64
- osx-arm64

0 comments on commit 4b6fcc8

Please sign in to comment.