bucky: init

This commit is contained in:
Kuoi 2022-08-28 13:12:03 +01:00
parent d4d8b0df95
commit 1aa835b365
3 changed files with 53 additions and 0 deletions

View file

@ -0,0 +1,30 @@
pkgname=bucky
pkgver=1.4.4
pkgrel=1
pkgdesc="Bayesian Untangling of Concordance Knots https://doi.org/10.1093/bioinformatics/btq539"
arch=('x86_64')
conflicts=('mpi-bucky')
url="https://github.com/tkchafin/mpi-bucky"
license=('GPL')
depends=('gcc-libs' 'boost-libs')
makedepends=('clang' 'boost')
source=("http://dstats.net/download/http://www.stat.wisc.edu/~ane/bucky/v${pkgver%.*}/bucky-${pkgver}.tgz")
sha256sums=('1621fee0d42314d9aa45d0082b358d4531e7d1d1a0089c807c1b21fbdc4e4592')
build() {
cd "$srcdir/$pkgname-$pkgver/src"
for file in TaxonSet Alias mbsumtree TGM Quartets mbsumtree
do
clang++ -c $file.C
done
clang++ bucky.C TaxonSet.o Alias.o mbsumtree.o TGM.o Quartets.o -o bucky
clang++ mbsum.C mbsumtree.o -o mbsum
}
package() {
cd "$srcdir/$pkgname-$pkgver/src"
for bin in bucky mbsum
do
install -Dm 755 $bin $pkgdir/usr/bin/$bin
done
}

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,12 @@
build_prefix: extra-x86_64
maintainers:
- github: starsareintherose
email: kuoi@bioarchlinux.org
pre_build: |
update_pkgrel()
vcs_update
post_build: |
git_pkgbuild_commit()
update_on:
- source: cmd
cmd: curl -sS https://pages.stat.wisc.edu/~ane/bucky/downloads.html | grep '<td>[0-9]\+' | sed 's/<td>//g' | awk '{print $1}' | head -n 1