summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8bf63a63e7eb755ae008239a0fcc0a5110e2e3b8 (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
# Maintainer: Łukasz Pożarlik <lpozarlik@gmail.com>
# Contributor: Vincent Hourdin <vh|at|free-astro=DOT=vinvin.tf>

pkgname=siril
pkgver=0.99.10.1
pkgrel=1
pkgdesc="An astronomical image processing software for Linux. (IRIS clone)"
arch=('i686' 'x86_64')
license=('GPLv3')
depends=('gtk3' 'fftw' 'cfitsio' 'gsl' 'libconfig' 'opencv' 'exiv2' 'ffms2')
makedepends=('intltool' 'cmake' 'libpng' 'libjpeg' 'libheif' 'libtiff' 'libraw' 'ffms2' 'ffmpeg' 'curl' 'wcslib' 'libcurl-gnutls' 'gnuplot')   
url="https://www.siril.org/"
optdepends=('libpng: PNG import'
            'libjpeg: JPEG import and export'
            'libtiff: TIFF import and export'
            'libraw: DSLR RAW images import'
            'ffms2: films native support as image sequences and import'
            'libcurl-gnutls: check for updates'
            'gnuplot: photometry graphs creation')

source=("https://free-astro.org/download/siril-${pkgver}.tar.bz2")
sha256sums=("a0b3debc1efb313a84958fb1819b3a5d0a1395b096db54cce7e3e34a463a5c79")

build() {
  cd siril
  pwd
  CFLAGS='-fcommon' ./autogen.sh --prefix=/usr
  make
}

package() {
  cd siril
  make DESTDIR="${pkgdir}" install
  install -v -d ${pkgdir}/usr/share/applications/
  install -v -d ${pkgdir}/usr/share/mime/packages/
  install -v -m 644 platform-specific/linux/org.free_astro.siril.desktop ${pkgdir}/usr/share/applications/
  install -v -m 644 platform-specific/linux/siril.xml ${pkgdir}/usr/share/mime/packages/
}