mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
fermi-lite:add pkg
This commit is contained in:
parent
87391adab2
commit
bd62dc74ad
3 changed files with 62 additions and 0 deletions
41
BioArchLinux/fermi-lite/PKGBUILD
Normal file
41
BioArchLinux/fermi-lite/PKGBUILD
Normal file
|
@ -0,0 +1,41 @@
|
|||
# Maintainer: PumpkinCheshire <sollyonzou at gmail dot com>
|
||||
|
||||
pkgname=fermi-lite
|
||||
pkgver=0.1.r15.g5bc90f8
|
||||
pkgrel=1
|
||||
pkgdesc="Standalone C library for assembling Illumina short reads in small regions"
|
||||
arch=('x86_64')
|
||||
url="https://github.com/walaj/fermi-lite"
|
||||
license=('MIT')
|
||||
depends=('zlib')
|
||||
makedepends=('git' 'make')
|
||||
source=("git+${url}.git")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
git -C ${pkgname} describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
|
||||
}
|
||||
|
||||
prepare(){
|
||||
cd ${pkgname}
|
||||
sed -i "s|CFLAGS=|CFLAGS=-fPIC |" Makefile
|
||||
sed -i "s|^const|extern const|" rle.h
|
||||
}
|
||||
build() {
|
||||
cd "$srcdir/${pkgname}"
|
||||
make
|
||||
mkdir lib
|
||||
cp libfml.a lib
|
||||
cd lib
|
||||
ar -x libfml.a
|
||||
gcc -shared -o libfml.so *.o
|
||||
}
|
||||
|
||||
package() {
|
||||
install -Dm755 -t "${pkgdir}/usr/bin" ${srcdir}/${pkgname}/fml-asm
|
||||
install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" ${pkgname}/LICENSE.txt
|
||||
cd $srcdir/${pkgname}
|
||||
install -Dm644 *.h -t "${pkgdir}/usr/include/${pkgname}"
|
||||
install -Dm755 lib/libfml.so -t "${pkgdir}/usr/lib"
|
||||
ln -s /usr/lib/libfml.so "${pkgdir}/usr/lib/libfermi-lite.so"
|
||||
}
|
10
BioArchLinux/fermi-lite/lilac.py
Normal file
10
BioArchLinux/fermi-lite/lilac.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/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()
|
11
BioArchLinux/fermi-lite/lilac.yaml
Normal file
11
BioArchLinux/fermi-lite/lilac.yaml
Normal file
|
@ -0,0 +1,11 @@
|
|||
build_prefix: extra-x86_64
|
||||
maintainers:
|
||||
- github: starsareintherose
|
||||
email: kuoi@bioarchlinux.org
|
||||
pre_build: vcs_update
|
||||
|
||||
post_build: git_pkgbuild_commit
|
||||
|
||||
update_on:
|
||||
- source: github
|
||||
github: walaj/fermi-lite
|
Loading…
Add table
Reference in a new issue