blob: 9a060ce1d3f8093b4562e44200342967ae0d2bf0 (
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# Maintainer: Ashely Roll <ash at digitalnemesis dot com>
# Maintainer: Jan Černý <cernyhonza at gmail dot com>
pkgname=astrodmx-capture
pkgver=2.9.7
pkgrel=1
pkgdesc="AstroDMx Capture Astronomical Imaging"
arch=('x86_64' 'aarch64' 'armv7h')
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=('glibc>=2.27'
'libgphoto2'
'glu'
'libtool'
'gtk3'
'at-spi2-core'
'zlib'
'libsm'
'expat'
'harfbuzz'
'glib2'
'gcc-libs'
'gdk-pixbuf2'
'curl'
'pango'
'libxtst'
'libusb'
'libglvnd'
'systemd-libs'
'libx11'
'libxxf86vm'
'freetype2'
'libxml2'
'fontconfig'
'cairo'
'libwebcam-git')
# The Author, Nicola, is now copying new releases into both the `current` and `old` folders so that we
# can maintain a constant path the file. Hopefully this will allow us to continue installing older versions
# without breakage after a new version is released. Thanks Nicola!
source_x86_64=("https://www.astrodmx-capture.org.uk/downloads/astrodmx/current/linux-x86_64/astrodmx-capture_${pkgver}_x86-64-manual.tar.gz")
sha256sums_x86_64=("e51ea134cb11ae3d9d74a58dcc254029846abccf4926a59201042c538f867854")
source_aarch64=("https://www.astrodmx-capture.org.uk/downloads/astrodmx/current/linux-arm/astrodmx-glibc-2.28_${pkgver}_manual-aarch64.tar.gz")
sha256sums_aarch64=("60aae9562aaff2a68fb37997effadf0627a3eeab7a3c0e8cd0499157044e9ba9")
source_armv7h=("https://www.astrodmx-capture.org.uk/downloads/astrodmx/current/linux-arm//astrodmx-glibc-2.28_${pkgver}_manual-armhf.tar.gz")
sha256sums_armv7h=("5320739e8305d7ddcbe004b3a9fce9777939e32c92b5df2a3054e3d40edc19ec")
_instdir="/opt/AstroDMx-Capture"
_prefix="AstroDMx-${pkgver}-manual"
package() {
# create the desitination folder
mkdir -p "${pkgdir}${_instdir}"
# copy over the linux 64 bit files
cp --recursive ${_prefix}/opt/AstroDMx-Capture/* "${pkgdir}${_instdir}"
# add xdg menu
mkdir -p ${pkgdir}/etc/xdg/menus/applications-merged/
cp "${_prefix}/etc/xdg/menus/applications-merged/astrodmx.menu" "${pkgdir}/etc/xdg/menus/applications-merged/"
# copy usr share
mkdir -p "${pkgdir}/usr/share/"
cp -r ${_prefix}/usr/share/* "${pkgdir}/usr/share/"
# copy over the udev rules
mkdir -p "${pkgdir}/etc/udev/rules.d"
cp ${_prefix}/etc/udev/rules.d/* "${pkgdir}/etc/udev/rules.d"
# create a profile file to add an alias for astrodmx
mkdir -p "${pkgdir}/etc/profile.d"
echo "alias astrodmx=\"${_instdir}/bin/AstroDMx-Capture\"" > "${pkgdir}/etc/profile.d/${pkgname}.sh"
}
|