modeltest-gui: use USE_GUI instead of build.sh

This commit is contained in:
Kuoi 2022-08-28 16:04:24 +01:00
parent 0499d95ce5
commit 2b7a2428f0

View file

@ -3,7 +3,7 @@
pkgname=modeltest-gui
pkgver=0.1.7
pkgrel=6
pkgrel=7
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')
@ -18,10 +18,11 @@ prepare(){
}
build(){
cd ${srcdir}/modeltest/
chmod +x build.sh
./build.sh
mkdir build && cd build
cmake cmake -DUSE_GUI=ON ..
make
}
package() {
install -dm755 "${pkgdir}"/usr/bin
install -Dm755 "${srcdir}/modeltest/build/bin/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
install -Dm755 "${srcdir}/modeltest/bin/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
}