summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAshley Roll2020-04-30 20:51:49 +1000
committerAshley Roll2020-04-30 20:51:49 +1000
commit012166ef2b2edfde7bf6b4aa1c2d61b13b651384 (patch)
treeeaff91f1402398beb5a6bd196ae0a4225f38d2f6
downloadaur-012166ef2b2edfde7bf6b4aa1c2d61b13b651384.tar.gz
Initial version.
Installed as per instructions from the manual instal package from the source web site. Couldn't just add path to bin folder as the application appears to need to be launched from the `/usr/local/AstroDMx_Capture/bin` so I created and alias `astrodmx` that changes to that folder, runs and then returns to starting folder.
-rw-r--r--.SRCINFO14
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD37
-rw-r--r--astrodmx-capture.install11
4 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..c33bee190343
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = astrodmx-capture
+ pkgdesc = AstroDMx Capture Astronomical Imaging
+ pkgver = 0.68.1
+ pkgrel = 1
+ url = https://www.linux-astro-imaging.uk/
+ install = astrodmx-capture.install
+ arch = x86_64
+ license = custom
+ options = !strip
+ source = https://www.linux-astro-imaging.uk/sites/downloads/astrodmx_capture-0.68.1-manual-x86_64.tar.gz
+ sha256sums = 31f66b5998b76d8853061a465d8aef53145d36aad27cfe16bb13624259c8e0ea
+
+pkgname = astrodmx-capture
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000000..b53c6dff1211
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+pkg/
+src/
+*.zip
+*.tar.xz
+*.tar.gz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..8ddb0606d643
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Ashely Roll <ash at digitalnemesis dot com>
+
+pkgname=astrodmx-capture
+pkgver=0.68.1
+pkgrel=1
+pkgdesc="AstroDMx Capture Astronomical Imaging"
+arch=('x86_64')
+url="https://www.linux-astro-imaging.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
+
+source=("https://www.linux-astro-imaging.uk/sites/downloads/astrodmx_capture-0.68.1-manual-x86_64.tar.gz")
+sha256sums=("31f66b5998b76d8853061a465d8aef53145d36aad27cfe16bb13624259c8e0ea")
+
+_instdir="/usr/local/AstroDMx_Cpature"
+
+package() {
+ # create the desitination folder
+ mkdir -p "${pkgdir}${_instdir}"
+
+ # copy over the linux 64 bit files
+ cp --recursive x86_64/usr/local/AstroDMx_Capture/* "${pkgdir}${_instdir}"
+
+ # copy over the udev rules
+ mkdir -p "${pkgdir}/etc/udev/rules.d"
+ cp x86_64/etc/udev/rules.d/* "${pkgdir}/etc/udev/rules.d"
+
+ # create a profile file to add an alias for astrodmx
+ # this is needed because the application has to be launced from the bin folder
+ # to correctly work, so we can't just add the path. sigh.
+ mkdir -p "${pkgdir}/etc/profile.d"
+ echo "alias astrodmx=\"pushd '${_instdir}/bin'; ./astrodmx_capture -D2; popd\"" > "${pkgdir}/etc/profile.d/${pkgname}.sh"
+}
+
diff --git a/astrodmx-capture.install b/astrodmx-capture.install
new file mode 100644
index 000000000000..59562f314fe7
--- /dev/null
+++ b/astrodmx-capture.install
@@ -0,0 +1,11 @@
+post_install() {
+ udevadm control --reload-rules &> /dev/null
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ udevadm control --reload-rules &> /dev/null
+}