add gatb-core but kmerinshort fail due to the submodule

This commit is contained in:
Kuoi 2022-07-24 00:13:16 +01:00
parent 4c7201ea84
commit d08255711a
6 changed files with 111 additions and 0 deletions

View file

@ -0,0 +1,35 @@
# guoyi
pkgname=gatb-core
pkgver=1.4.2
pkgrel=1
pkgdesc="Core library of the Genome Analysis Toolbox with de-Bruijn graph"
arch=('any')
url="https://github.com/GATB/gatb-core"
license=('AGPL')
depends=()
makedepends=('gcc' 'make' 'cmake')
optdepends=()
source=(https://github.com/GATB/gatb-core/archive/refs/tags/v${pkgver}.tar.gz)
sha256sums=('824c84a3712973746b977a9d49923fd499021a894225231100eaad1a66e9742d')
prepare() {
cd "$pkgname-$pkgver"/$pkgname
mkdir -p build
}
build() {
cd "$pkgname-$pkgver"/$pkgname
cd build
cmake ..
make -j 4
}
package() {
cd "$pkgname-$pkgver"/$pkgname
cd build
install -dm755 "$pkgdir"/usr/{bin,lib,include}
mv bin/* $pkgdir/usr/bin/
mv lib/* $pkgdir/usr/lib/
mv include/* $pkgdir/usr/include
}

View file

@ -0,0 +1,12 @@
#!/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()
update_aur_repo()

View file

@ -0,0 +1,9 @@
build_prefix: extra-x86_64
maintainers:
- github: starsareintherose
email: kuoi@bioarchlinux.org
update_on:
- source: github
github: GATB/gatb-core
use_latest_release: true
prefix: 'v'

View file

@ -0,0 +1,34 @@
# guoyi
pkgname=kmerinshort
_pkgname=KmerInShort
pkgver=1.0.1
pkgrel=1
pkgdesc="short kmer counter"
arch=('x86_64')
url="https://github.com/rizkg/KmerInShort"
license=('AGPL')
depends=()
makedepends=('gcc' 'make' 'cmake' 'git')
optdepends=()
source=(git+https://github.com/rizkg/KmerInShort.git#tag=v${pkgver})
sha256sums=('SKIP')
prepare() {
cd "$_pkgname"
git submodule update --init --recursive
mkdir -p build
}
build() {
cd "$_pkgname"
cd build
cmake ..
make
}
package() {
cd "$_pkgname"
make DESTDIR="$pkgdir/" install
}

View file

@ -0,0 +1,12 @@
#!/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()
update_aur_repo()

View file

@ -0,0 +1,9 @@
build_prefix: extra-x86_64
maintainers:
- github: starsareintherose
email: kuoi@bioarchlinux.org
update_on:
- source: github
github: rizkg/KmerInShort
use_latest_release: true
prefix: 'v'