blob: 417426008c07ffa01150260c904ca65668a7a635 (
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
42
43
44
45
46
47
|
# Maintainer: Tomasz Zok <tomasz dot zok at gmail dot com>
pkgname=dafs-git
pkgver=r108.e9cc15c
pkgrel=1
pkgdesc="dual decomposition for aligning and folding RNA sequences simultaneously"
arch=(x86_64)
url="https://github.com/satoken/dafs"
license=('GPL')
depends=(viennarna)
makedepends=(cmake)
optdepends=('glpk: solver for linear programming')
source=("git+https://github.com/satoken/${pkgname%-git}"
"git+https://github.com/jarro2783/cxxopts"
"git+https://github.com/gabime/spdlog"
"dafs.patch")
sha256sums=('SKIP'
'SKIP'
'SKIP'
'6147313855a24ff6b624a16318460e1b8eaae5087afc93460ca75717193185dd')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/${pkgname%-git}"
git submodule init
git config submodule.libs/cxxopts.url "$srcdir/cxxopts"
git config submodule.libs/spdlog.url "$srcdir/spdlog"
git -c protocol.file.allow=always submodule update
patch -p0 -i "$srcdir/${pkgname%-git}.patch"
}
build() {
cd "$srcdir/${pkgname%-git}"
mkdir -p build
cd build
cmake ..
make
}
package() {
cd "$srcdir/${pkgname%-git}/build"
make DESTDIR="$pkgdir/" install
}
|