blob: ba00b8e16965c7f10f8fcee4cf253b212452d644 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Maintainer: Bipin Kumar <kbipinkumar@pm.me>
pkgname=python-mappy
_source=minimap2
pkgver=2.29
pkgrel=1
pkgdesc="Python interface to minimap2, a fast and accurate C program to align genomic and transcribe nucleotide sequences"
arch=('x86_64')
url="https://github.com/lh3/minimap2"
license=('MIT')
depends=(
'python'
'minimap2'
'zlib'
'glibc'
)
makedepends=(
'python-setuptools'
'cython'
'python-wheel'
'python-build'
'python-installer'
)
options=(!emptydirs)
source=(${_source}-${pkgver}.tar.gz::https://github.com/lh3/minimap2/archive/refs/tags/v${pkgver}.tar.gz)
sha256sums=('008d5e9848b918e4eb09d054aa3d6c272d50e92b8fc8537abf5081a507019718')
prepare() {
cd ${_source}-${pkgver}
sed -i 's|CFLAGS= -g -Wall -O2 -Wc++-compat #-Wextra|CFLAGS= -g -Wall -O2 -Wc++-compat -fPIC #-Wextra|g' Makefile
}
build() {
cd ${_source}-${pkgver}
python -m build --wheel --no-isolation
}
package() {
cd ${_source}-${pkgver}
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 "LICENSE.txt" "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE
}
|