polish the PKGBUILD

This commit is contained in:
月季花中的星辰 2021-11-01 00:33:11 +00:00 committed by GitHub
parent 7e4260b0ca
commit a42c541d82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,18 +6,19 @@ pkgrel=1
pkgdesc="free population genetics software"
arch=('x86_64')
url="http://popart.otago.ac.nz/index.shtml"
license=('custom')
license=('LGPLv2')
depends=('marble' 'lpsolve' 'qt5-base')
makedepends=('git')
source=("git+https://github.com/jessicawleigh/popart-current.git" "popart.desktop")
md5sums=('SKIP'
'44802b43fa5dba142dbb20cc32e15f45')
package() {
build() {
cd $srcdir/${pkgname}-current
qmake -makefile LPSOLVEDIR=/usr/bin/lp_solve MARBLEDIR=/usr/bin/marble popart.pro
make
}
package() {
install -d "$pkgdir"/usr/{bin,share/{popart,applications}}
mv "$srcdir"/popart-current/* "$pkgdir"/usr/share/popart
ln -s /usr/share/popart/popart "$pkgdir"/usr/bin/popart