blob: 7b1225d9e9e8bbee5764cc0661c3fb1b2afd37f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Maintainer: Filippo Falezza <filippo dot falezza at outlook dot it>
pkgname='azure2'
#_pkgname='AZURE2-qt5'
_pkgname='Azure2'
#_pkgname='brick'
pkgver=1.0.0
pkgrel=1
pkgdesc='Bayesian R-Matrix Inference Code'
url='https://azure.nd.edu/'
provides=('azure2')
arch=('any')
makedepends=(
'root'
'qt5-base'
'qwt'
)
source=(
#"file://${_pkgname}-patched.zip"
"git+ssh://git@github.com/bhamnuclear/Azure2.git"
)
sha256sums=('SKIP')
#The sources are to be provided manually as the package is not public
build() {
echo "If this fails, try running cmake by hand, compile with make and then re-run makepkg\n"
cd "${srcdir}/${_pkgname}"
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DUSE_QWT=ON -DBUILD_LIBRARY=OFF -DCMAKE_INSTALL_PREFIX=/opt/Azure2 -DMINUIT2_INCLUDE_DIR=/usr/include/Minuit2 -DMINUIT2_LIBRARY_DIR=/usr/lib/root -DQWT_VERSION_STRING=6.2.0 -DQt5_DIR=/usr/lib/cmake/Qt5 -DQt5Widgets_DIR=/usr/lib/cmake/Qt5Widgets -DQt5PrintSupport_DIR=/usr/lib/cmake/Qt5PrintSupport -DQt5Gui_DIR=/usr/lib/cmake/Qt5Gui -DQt5Core_DIR=/usr/lib/cmake/Qt5Core -DROOT_DIR=/usr/lib/cmake/ROOT -Dnlohmann_json_DIR=/usr/share/cmake/nlohmann_json "${srcdir}/${_pkgname}"
make
cd "${srcdir}"
echo "export PATH=\$PATH:/opt/AZURE2/bin" > Azure2.sh
}
package() {
cd "${srcdir}/${_pkgname}/build"
install -Dm755 src/AZURE2 "${pkgdir}/opt/AZURE2/bin/AZURE2"
ln -s "${pkgdir}/opt/AZURE2/bin/AZURE2" "${pkgdir}/opt/AZURE2/bin/azure2"
install -Dm644 coul/src/libcoul.a "${pkgdir}/opt/AZURE2/lib/libcoul.a"
install -Dm644 gui/src/libAZURESetup.a "${pkgdir}/opt/AZURE2/lib/libAZURESetup.a"
install -Dm755 "${srcdir}/Azure2.sh" "${pkgdir}/etc/profile.d/Azure2.sh"
}
|