summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c7e525169615135d62a477a261f804355e5f6203 (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
# Maintainer: Jan Cerny <cernyhonza at gmail com>


pkgname=astrocrop
pkgver=1.1.1a
pkgrel=1
pkgdesc="Astronomical image preprocessing tool"
arch=('x86_64')
url="https://www.astrodmx-capture.org.uk/"
# No licence file available in package, see https://www.linux-astro-imaging.uk/linux/astronomy/linux-downloads
# for details.
license=(custom)
options=(!strip)
install=$pkgname.install
depends=('libxxf86vm' 'at-spi2-core' 'gtk2')

source=("https://www.astrodmx-capture.org.uk/downloads/other-software/astrocrop_${pkgver}_amd64.deb")
sha256sums=("d0ac01222721d63b41da0177696f161b73ae293285836b19ee577670359da193")

_instdir="/usr/local/AstroCrop"
_prefix="AstroCrop-${pkgver}-manual"


prepare() {
    mkdir ${_prefix}
    tar -xvf data.tar.xz -C ${_prefix}
}

package() {
    # create the desitination folder
    mkdir -p "${pkgdir}${_instdir}"

    # copy over the linux 64 bit files
    cp --recursive ${_prefix}/usr/local/AstroCrop/* "${pkgdir}${_instdir}"

    # copy usr share
    mkdir -p "${pkgdir}/usr/share/"
    cp -r ${_prefix}/usr/share/* "${pkgdir}/usr/share/"

    # create a profile file to add an alias for astrodmx
    mkdir -p "${pkgdir}/etc/profile.d"
    echo "alias astrocrop=\"${_instdir}/bin/launcher.sh\"" > "${pkgdir}/etc/profile.d/${pkgname}.sh"
}