blob: 2e3ea6015b31f6a2cfb71840f23d8b7eafdff1ab (
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
|
# Maintainer: Guoyi Zhang <myname at malacology dot net>
pkgname=dnarates
_pkg=DNArates
pkgver=1.1.0
pkgrel=0
arch=('x86_64')
pkgdesc="estimating site-specific nucleotide substitution rates by maximum likelihood \
https://doi.org/10.1093/nar/22.17.3485"
url='https://www.life.illinois.edu/gary/programs/DNArates.html'
license=('LicenseRef-unknow')
depends=('glibc')
makedepends=('gcc')
source=("${pkgname}-${pkgver}.tgz::https://www.life.illinois.edu/gary/programs/DNArates/DNArates_$pkgver.tar.gz"
"1.1.0.patch")
sha1sums=('889037be0b9330712084ee6621bd488c9287c073'
'cf36569312f7b72686aa26a958836d931ad79853')
prepare() {
cd $srcdir/${_pkg}_$pkgver
patch -p1 < $srcdir/1.1.0.patch
}
build() {
cd $srcdir/${_pkg}_$pkgver/source
gcc -o $_pkg $_pkg.c -lm
}
package() {
cd $srcdir/${_pkg}_$pkgver
# binary
install -Dm 755 source/$_pkg $pkgdir/usr/bin/$_pkg
# docs
install -Dm 644 docs/*.txt $pkgdir/usr/share/doc/$pkgname/manual.txt
}
|