summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 19fcf92273b5c4e41917750dcd22e80a30b4c012 (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: adamanteye <yzh_0@outlook.com>
# Contributor: Yigit Dallilar <yigit.dallilar@gmail.com>

pkgname=astroimagej
pkgver=5.3.3
pkgrel=1
pkgdesc="a simple and powerful tool for astronomical image analysis and precise photometry"
arch=('x86_64')
url="http://www.astro.louisville.edu/software/astroimagej/"
depends=('java-runtime')
license=('GPL')
source=("${url}installation_packages/AstroImageJ_v${pkgver}.00-linux-x86_64Bit.tar.gz"
        "aij" "astroimagej.desktop")
sha256sums=('ff720d2f364aa1e90727a782bf785f1fa5214555130cd9438c5553b2dc383c03'
            '402dff16ffd0cb1c12b091bddbb75621a245c83632675f6dacd3ffb76fc3f155'
            '1b32cc64c00ce92daef1d14bfaf37868f4d0f3b4949f1d5a824cf32aee1c1f87')
package() {
	cd ${srcdir}
	tarfile="AstroImageJ_v${pkgver}.00-linux-x86_64Bit.tar.gz"
	mkdir ${pkgdir}/opt
	mkdir -p "$pkgdir/usr/share/applications"
  	mkdir -p "$pkgdir/usr/share/pixmaps"
	install -m755 "$srcdir/${pkgname}.desktop" "$pkgdir/usr/share/applications/${pkgname}.desktop"
	cp $tarfile ${pkgdir}/opt
	cd ${pkgdir}/opt
	tar zxvf $tarfile
	rm $tarfile
	mv ${pkgdir}/opt/AstroImageJ ${pkgdir}/opt/astroimagej
	install -m755 ${pkgdir}/opt/astroimagej/AstroImageJ.png "$pkgdir/usr/share/pixmaps/${pkgname}.png" 
	cd ${srcdir}
	install -D -m755 aij ${pkgdir}/usr/bin/aij
}