summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 92f01767c415f5ce091b56b4d990bb3bfe7c8445 (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
# Maintainer: Heptazhou <zhou at 0h7z dot com>

pkgname_=iraf
pkgname=$pkgname_-bin
debver=2.17.1-5
pkgver=2.17.1
pkgrel=2
pkgdesc="IRAF - Image Reduction and Analysis Facility"
arch=("x86_64")
url="https://github.com/iraf-community/iraf"
url_="https://deb.debian.org/debian/pool/main/i/$pkgname_"
license=("custom")
provides=("$pkgname_")
conflicts=("$pkgname_")
depends=("bash" "cfitsio" "expat")
optdepends=(
	"ds9: Image display tool for astronomy"
	"xgterm: Terminal emulator to work with IRAF"
)
options=(!debug)
source=(${url_}/${pkgname_}_${debver}_amd64.deb)
sha256sums=("72122b4274fe2db881f3ac0a9da226ba0498570311dc83efe571fd44a7df0226")
# https://tracker.debian.org/pkg/iraf

package() {
	cd -- "$srcdir/"
	tar xf "data.tar.xz"

	mkdir "usr/share/licenses/$pkgname_/" -p
	mv -T "usr/share"/{"doc/$pkgname_/copyright","licenses/$pkgname_/LICENSE"}
	rm -r "usr/share"/{"doc","lintian"} -f
	cp -t "$pkgdir/" -a "etc" "usr"
}