# Maintainer: Luis Sarmiento < lgsarmientop-ala-unal.edu.co > # Contributor: Sebastian Voecking pkgname=clhep _pkgname=CLHEP pkgver=2.4.6.3 pkgrel=1 pkgdesc='A Class library for High Energy Physics' url="http://proj-clhep.web.cern.ch/" arch=('x86_64') license=('GPL3') depends=('bash') options=('!emptydirs' 'staticlibs') makedepends=('cmake' # for building the package 'texlive-core' # for the documentation 'doxygen' # foc the documentation ) source=("http://proj-clhep.web.cern.ch/proj-clhep/dist1/${pkgname}-${pkgver}.tgz") sha256sums=('fcd007f11b10ba4af28d027222b63148d0eb44ff7a082eee353bdf921f9c684a') build() { msg 'Creating building directory' [ -d ${srcdir}/build ] && rm -rf ${srcdir}/build mkdir ${srcdir}/build cd ${srcdir}/build msg 'Compiling the package' cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DCLHEP_BUILD_DOCS=ON \ ${srcdir}/${pkgver}/${_pkgname} make || return 1 } check() { cd ${srcdir}/build make test } package() { msg 'Creating the package' cd ${srcdir}/build make DESTDIR="${pkgdir}" install install -Dm644 ${srcdir}/${pkgver}/${_pkgname}/COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" }