summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5a765cc39003a3d4c8be95e9fc9503c0a7cdc97b (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
# Maintainer:  Yigit Dallilar <yigit.dallilar@gmail.com>

pkgname=esorex
pkgver=3.13.5
pkgrel=3
pkgdesc="EsoRex is the ESO Recipe Execution Tool. It can list, configure and execute CPL-based recipes from the command line."
url="https://www.eso.org/sci/software/cpl/esorex.html"
arch=('x86_64')
license=('GPL2')
depends=(cpl)
makedepends=(cpl)
provides=()
conflicts=()
replaces=()
backup=()
source=(https://ftp.eso.org/pub/dfs/pipelines/libraries/esorex/esorex-${pkgver}.tar.gz
        esorex)
sha256sums=('417def5a893dda3396a363007ad2537ab1804d56efc9f41f6b95be61c6eb1894'
            SKIP)


build() {

    # In case everything build in one-go variables may not be read.
    [[ -z "${CPLDIR}" ]] && . /etc/profile.d/cpl.sh
    export C_INCLUDE_PATH=${CPLDIR}/include:${C_INCLUDE_PATH}
    export LD_LIBRARY_PATH=${CPLDIR}/lib:${LD_LIBRARY_PATH}

	cd $srcdir/${pkgname}-${pkgver}
	./configure --prefix=/opt/esopipes --with-cpl=${CPLDIR}
	make

}

package() {

	cd $srcdir/${pkgname}-${pkgver}
	make DESTDIR=${pkgdir} install

	install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
	install -D -m755 ${srcdir}/esorex ${pkgdir}/usr/bin/esorex
}

# vim:set ts=4 sw=4 et: