mirror of
https://github.com/arcan1s/moldyn.git
synced 2025-07-30 14:09:58 +00:00
added get-dipole
This commit is contained in:
40
mathmech/PKGBUILD-mingw
Normal file
40
mathmech/PKGBUILD-mingw
Normal file
@ -0,0 +1,40 @@
|
||||
# Author: Evgeniy "arcanis" Alexeev <arcanis.arch at gmail dot com>
|
||||
# Maintainer: Evgeniy "arcanis" Alexeev <arcanis.arch at gmail dot com>
|
||||
|
||||
pkgname=mathmech
|
||||
pkgver=1.2.0
|
||||
pkgrel=2
|
||||
pkgdesc="Software package for analysis of molecular dynamics trajectories"
|
||||
arch=('any')
|
||||
url="http://arcan1s.github.io/projects/moldyn"
|
||||
license=('Beerware')
|
||||
depends=('mingw-w64-qwt')
|
||||
makedepends=('mingw-w64-cmake' 'automoc4')
|
||||
source=(https://github.com/arcan1s/moldyn/releases/download/mm-${pkgver}/${pkgname}-${pkgver}-src.zip)
|
||||
md5sums=('46d8e1a3d6bc30d5b0b57ccf485986b1')
|
||||
_cmakekeys="-DCMAKE_INSTALL_PREFIX=/usr
|
||||
-DQWT_INCLUDE_PATH=/usr/x86_64-w64-mingw32/qwt
|
||||
-DQWT_LIBRARY_PATH=/usr/x86_64-w64-mingw32/lib
|
||||
-DMM_PREFIX=mm_
|
||||
-DADD_DOCS:BOOL=1
|
||||
-DADD_INCLUDE:BOOL=1
|
||||
-DCMAKE_BUILD_TYPE=Release"
|
||||
|
||||
prepare() {
|
||||
[[ -d ${srcdir}/build ]] && rm -rf "${srcdir}/build"
|
||||
mkdir "${srcdir}/build"
|
||||
}
|
||||
|
||||
build() {
|
||||
unset LDFLAGS
|
||||
cd "${srcdir}/build"
|
||||
x86_64-w64-mingw32-cmake ${_cmakekeys} ../
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/build"
|
||||
make DESTDIR="${pkgdir}" install
|
||||
install -Dm644 "${srcdir}/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
|
||||
}
|
||||
|
Reference in New Issue
Block a user