summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b4e8050d65b080b6b864b9ba7a7ec8114a9e0396 (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
# Maintainer: Wren Baxter <aur [at] wren.dev>

pkgname=astap-bin-qt5
pkgver=2024.03.27
pkgrel=1
pkgdesc="Astrometric (plate) solver, stacking of images, photometry and FITS viewer"
provides=('astap')
conflicts=('astap-bin' )
arch=('x86_64') # no 32-bit version provided, consider building from source with the `astap` package
url="https://www.hnsky.org/astap.htm"
license=('LGPL3')
source=("astap-${pkgver}.tar.gz::https://github.com/wrenby/astap-backups/raw/b9e2caae7dc7bf02487690670e70639214cef7de/astap_amd64_qt5.tar.gz")
md5sums=('fe05a8f077bb597428e4a9f2b6398ef5')

noextract=("astap-${pkgver}.tar.gz") # bsdtar can't handle this archive because it contains a self-referential hardlink
makedepends=('tar') # but gnu tar is just fine
depends=('qt5pas' 'libjpeg-turbo' 'libx11' 'gcc-libs' 'zlib' 'glibc')

# these databases aren't hard-limited by the bounds provided here
# databases can identify 100% of the sky in the ranges provided,
# but can also identify some regions of the sky with FOVs smaller or larger than the given bounds
# there is no downside to choosing the bigger d__ databases, other than the larger file size
optdepends=('hyperleda-galaxy-db-astap: 25MB database of 1.3m galaxies and 171k other non-star objects'
    'w08-star-db-astap: 250KB database of stars up to magnitude 8, reliable above 20° FOV'
    'g05-star-db-astap: same as d05 but with larger 10 degree tiles, reliable with 1-20° FOV'
    'd05-star-db-astap: 100MB database of 500 stars per square degree, reliable with 0.6-10° FOV'
    'd20-star-db-astap: 400MB database of 2000 stars per square degree, reliable with 0.3-10° FOV'
    'd50-star-db-astap: 900MB database of 5000 stars per square degree, reliable with 0.2-10° FOV'
    'v50-star-db-astap: 1GB, same as d50 but includes photometry info, reliable with 0.2-10° FOV'
    'd80-star-db-astap: 1.2GB database of 8000 stars per square degree, reliable with 0.15-10° FOV')

prepare() {
    tar xpf "astap-${pkgver}.tar.gz"
}

package() {
    cp -r "${srcdir}"/opt "${pkgdir}"/opt
    mkdir -p "${pkgdir}"/usr/share/applications
    cp "${srcdir}"/usr/share/applications/ASTAP.desktop "${pkgdir}"/usr/share/applications/ASTAP.desktop
    mkdir -p "${pkgdir}"/usr/bin
    ln -s /opt/astap/astap "${pkgdir}"/usr/bin/astap
}