nanopolish: init

This commit is contained in:
Kuoi 2022-08-28 15:26:35 +01:00
parent 4f8f37c09f
commit 581cf5e461
3 changed files with 80 additions and 0 deletions

View file

@ -0,0 +1,55 @@
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=nanopolish
pkgver=0.14.0
pkgrel=1
pkgdesc="Provide signal-level analysis of Oxford Nanopore sequencing data"
arch=('x86_64')
url="https://github.com/jts/nanopolish"
license=('MIT')
depends=('glibc' 'hdf5' 'htslib' 'zlib')
makedepends=('git' 'eigen' 'wget')
source=("git+https://github.com/jts/nanopolish.git#tag=v$pkgver")
sha256sums=('SKIP'
'8863f56ef51672a4c6c50aeaea2e0e1b866a06bf4d4ca14006680f698e795a26')
prepare() {
cd "nanopolish"
git submodule update --init --recursive --remote
# patch -Np1 -i "$srcdir/0001-Fix-include-path-for-system-installed-eigen-library.patch"
# patch -Np1 -i "$srcdir/0002-Allow-users-to-supply-htslib-include-path-from-comma.patch"
}
build() {
cd "nanopolish"
make \
EIGEN=noinstall \
HDF5=noinstall \
HTS=noinstall \
EIGEN_INCLUDE="-I/usr/include/eigen3" \
H5_INCLUDE="-I/usr/include" \
HTS_INCLUDE="-I/usr/include/htslib"
}
check() {
cd "nanopolish"
make \
EIGEN=noinstall \
HDF5=noinstall \
HTS=noinstall \
EIGEN_INCLUDE="-I/usr/include/eigen3" \
H5_INCLUDE="-I/usr/include" \
HTS_INCLUDE="-I/usr/include/htslib" \
test
}
package() {
cd "nanopolish"
install -Dm755 "nanopolish" -t "$pkgdir/usr/bin"
install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/nanopolish"
}

View file

@ -0,0 +1,11 @@
#!/usr/bin/env python3
from lilaclib import *
def pre_build():
update_pkgver_and_pkgrel(_G.newver.lstrip('v'))
run_cmd(['updpkgsums'])
def post_build():
git_add_files('PKGBUILD')
git_commit()

View file

@ -0,0 +1,14 @@
build_prefix: extra-x86_64
maintainers:
- github: starsareintherose
email: kuoi@bioarchlinux.org
update_on:
- source: github
github: jts/nanopolish
use_max_tag: true
prefix: 'v'
- alias: alpm-lilac
alpm: htslib
strip_release: true
repo_depends:
- htslib