summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 45aa8058f7347f24ccb74c7c86f9e874965be57e (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
# Maintainer: Maurizio D'Addona <mauritiusdadd@libero.it>

pkgname=crtwo2fits
pkgver=0.1.1
pkgrel=5
pkgdesc="A ready-to-use tool and a python module for converting CR2 raw files into FITS images"
arch=(any)
url="https://github.com/mauritiusdadd/crtwo2fits"
license=('GPL3')
provides=('crtwo2fits')
conflicts=('crtwo2fits')
depends=('python-astropy')
optdepends=('dcraw: for faster image decoding')
backup=('etc/crtwo2fits.conf')

source=("https://github.com/mauritiusdadd/crtwo2fits/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('39e2a342a7c13af41f1a922ea45ea8004720e229e6a8d9dc6d88c4f2abcd1108')


build()
{
  cd "$srcdir/$pkgname-$pkgver"
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  install -dm755 "$pkgdir/usr"
  python setup.py install --prefix="$pkgdir/usr"

  install -Dm664 "${pkgdir}/usr/share/crtwo2fits/crtwo2fits.conf" "${pkgdir}/etc/crtwo2fits.conf"
}