summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a2dbe2cf56e5b4620496234df2623c64a86540e3 (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
43
44
45
46
47
48
49
50
51
52
53
# Maintainer: Wren Baxter <aur [at] wren.dev>

pkgname=astap-bin-qt5
pkgver=2026.01.06
pkgrel=1
pkgdesc="Astrometric (plate) solver, stacking of images, photometry and FITS viewer"
provides=('astap')
conflicts=('astap-bin' )
arch=('x86_64' 'aarch64') # no 32-bit version provided, consider building from source with the `astap` package
url="https://www.hnsky.org/astap.htm"
license=('LGPL3')
gitrev=b2a09447007a01e440f8292d77a10bbd210ba252
source_x86_64=("astap-${pkgver}.tar.gz::https://github.com/wrenby/astap-backups/raw/$gitrev/astap_amd64_qt5.tar.gz"
    "backup.yml::https://github.com/wrenby/astap-backups/raw/$gitrev/.github/workflows/backup.yml"
)
source_aarch64=("astap-${pkgver}.tar.gz::https://github.com/wrenby/astap-backups/raw/$gitrev/astap_aarch64_qt5.tar.gz"
    "backup.yml::https://github.com/wrenby/astap-backups/raw/$gitrev/.github/workflows/backup.yml"
)
md5sums_x86_64=('de9c2e17cb625caa910b5d8ef75d0dad'
    '80f57f756e7674ac61f2adba819e005b' # THIS HASH UPDATING IS UNUSUAL, AND SHOULD MAKE YOU DISTRUSTFUL. Inspect backup.yml for tomfoolery
)
md5sums_aarch64=('5c4d2bd1cdf63593f385a17e224a6a53'
    '80f57f756e7674ac61f2adba819e005b' # THIS HASH UPDATING IS UNUSUAL, AND SHOULD MAKE YOU DISTRUSTFUL. Inspect backup.yml for tomfoolery
)

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
}