mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
39 lines
1 KiB
Bash
39 lines
1 KiB
Bash
#!/bin/bash
|
|
|
|
# Maintainer: PumpkinCheshire <me at pumpkincheshire dot com>
|
|
# Contributor: Fabio Zanini <fabio.zanini _at_ stanford.edu>
|
|
|
|
pkgname=python-pysam
|
|
_name=pysam
|
|
pkgver=0.19.1
|
|
_pkgver=0.19.1
|
|
pkgrel=1
|
|
pkgdesc='Python interface for the SAM/BAM sequence alignment and mapping format'
|
|
arch=('x86_64')
|
|
url="https://github.com/pysam-developers/pysam"
|
|
license=('MIT')
|
|
depends=('python')
|
|
makedepends=(
|
|
'python-setuptools'
|
|
'cython'
|
|
'htslib'
|
|
)
|
|
provides=('python-pysam')
|
|
options=(!emptydirs)
|
|
source=("https://github.com/pysam-developers/${_name}/archive/v${pkgver}.tar.gz")
|
|
b2sums=('dac3ab5a86ef95048e966fc007a0aa1c96ca8498f7c2672c2ed024f34b508bac42048e58b8ae0b538cea137a51e1874bb5c2c4976c7f3dc657a4c2cf5f9a27fb')
|
|
|
|
build() {
|
|
cd "$srcdir/$_name-$pkgver"
|
|
|
|
export HTSLIB_LIBRARY_DIR=/usr/lib
|
|
export HTSLIB_INCLUDE_DIR=/usr/include
|
|
|
|
python setup.py build
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/$_name-$pkgver"
|
|
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
|
|
install -Dm644 "$srcdir/$_name-$pkgver/COPYING" -t "$pkgdir/usr/share/licenses/$pkgname"
|
|
}
|