summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD25
1 files changed, 17 insertions, 8 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 996d7ca3e682..270165010749 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,19 +3,28 @@
pkgname=modeltest-ng
pkgver=0.1.7
-pkgrel=1
-pkgdesc="A New and Scalable Tool for the Selection of DNA and Protein Evolutionary Models"
+pkgrel=6
+pkgdesc="A New and Scalable Tool for the Selection of DNA and Protein Evolutionary Models. https://doi.org/10.1093/molbev/msz189"
url='https://github.com/ddarriba/modeltest'
arch=('x86_64')
+makedepends=('bison' 'git' 'cmake' 'make' 'flex')
license=('GPL3')
-source=("https://github.com/ddarriba/modeltest/files/6192913/modeltest-ng-${pkgver}-static.tar.gz")
-sha256sums=('aab174ad96a420829ae02b0ed9802d008c7a67d5b48e4a7e7741d29b186a1097')
-
-prepare() {
- cd "${srcdir}"
+source=("git+https://github.com/ddarriba/modeltest.git#tag=v${pkgver}")
+sha256sums=('SKIP')
+provides=('modeltest-ng')
+conflicts=('modeltest-ng-mpi')
+prepare(){
+ cd ${srcdir}/modeltest
+ git submodule update --init --recursive
+}
+build(){
+ cd ${srcdir}/modeltest/
+ mkdir build && cd build
+ cmake ..
+ make
}
package() {
install -dm755 "${pkgdir}"/usr/bin
- install -Dm755 "${srcdir}/modeltest-ng-static" "${pkgdir}/usr/bin/${pkgname}"
+ install -Dm755 "${srcdir}/modeltest/bin/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
}