summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b1c81101b0d7175b7b432e1fed30e5a3228e0da1 (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
47
48
49
# Maintainer: <clu@eeviac>

pkgname=montage
pkgver=6.1
pkgrel=1
_pkgtag="a8bde0beff7bf0625fa9eb8ce12397e4527ee05f"
pkgdesc="An astronomical image mosaic engine"
arch=('i686' 'x86_64')
url="http://montage.ipac.caltech.edu/"
license=('custom')
depends=()
makedepends=()
provides=()
conflicts=()
#source=("http://montage.ipac.caltech.edu/download/Montage_v$pkgver.tar.gz")
#source=("https://github.com/Caltech-IPAC/Montage/archive/refs/tags/v$pkgver.tar.gz")
source=("https://github.com/Caltech-IPAC/Montage/archive/a8bde0b.tar.gz")
sha1sums=('fa880dae390e1976ccb018fda4a2fb725aa89460')

build() {
  cd $srcdir/Montage-${_pkgtag}
  ./configure --prefix=/usr
  # Unsure if this is documented yet, but it is needed to build at the moment
  sed -i '17i #include <string.h>' grid/Pegasus/mPresentation.c
  #cd $srcdir/Montage-$pkgver
  make
}

package() {
  cd $srcdir/Montage-${_pkgtag}
  
  # The following is used because the montage developers
  # have not included an install method in their Makefile
  mkdir -p $pkgdir/usr/bin
  install -Dm755 bin/* $pkgdir/usr/bin

  # Provided by wcslib package...
  # https://archlinux.org/packages/extra/x86_64/wcslib/
  rm $pkgdir/usr/bin/HPXcvt

  #custom license...
  mkdir -p $pkgdir/usr/share/licenses/$pkgname
  install -Dm644 $srcdir/Montage-${_pkgtag}/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE

  # Find docs at:
  # http://montage.ipac.caltech.edu/docs/
  # Github info:
  # https://github.com/Caltech-IPAC/Montage
}