summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 511b97924e0f302cc4a68cc2a4f5f515202e3981 (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
# Maintainer: Ramiro Magno <ramiro dot magno at gmail.com>
# Contributor:
pkgname=shapeit4
pkgver=4.2.2
pkgrel=2
pkgdesc="Segmented HAPlotype Estimation and Imputation Tools"
arch=('i686' 'x86_64')
url="https://odelaneau.github.io/shapeit4/"
license=('MIT')
depends=('zlib' 'bzip2' 'xz' 'glibc')
makedepends=('boost' 'htslib' 'gcc>=5.0.0')
source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/odelaneau/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz" "shapeit4.patch")
noextract=()
sha256sums=("9f109e307b5cc22ab68e7bf77de2429a9bbb2212d66303386e6a3dd81a5bc556" "b380dfeac4a28af4877d5f3f534864bd4c5090ed59f27c4da36c40bd18448457")
validpgpkeys=()

prepare() {
  patch -p0 -i "shapeit4.patch"
}

build() {
	cd "$pkgname-$pkgver"
	make
}

package() {
	cd "$pkgname-$pkgver"
	
	# Binaries
	install -Dm755 bin/shapeit4.2 "${pkgdir}/usr/bin/shapeit4"
	install -Dm755 tools/bingraphsample/bin/bingraphsample "${pkgdir}/usr/bin/bingraphsample"
	
	# Example data
	mkdir -p "${pkgdir}/usr/share/${pkgname}"
	install -Dm644 test/*.gmap.gz "${pkgdir}/usr/share/${pkgname}/"
	install -Dm644 test/*.vcf.gz "${pkgdir}/usr/share/${pkgname}/"
	install -Dm644 test/*.vcf.gz.csi "${pkgdir}/usr/share/${pkgname}/"
	install -Dm644 test/*.bcf "${pkgdir}/usr/share/${pkgname}/"
	install -Dm644 test/*.bcf.csi "${pkgdir}/usr/share/${pkgname}/"
}