diff options
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 43 | ||||
-rw-r--r-- | astrocrop.install | 11 |
3 files changed, 70 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..fa4fff3afa91 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = astrocrop + pkgdesc = Astronomical image preprocessing tool + pkgver = 1.1.1a + pkgrel = 1 + url = https://www.astrodmx-capture.org.uk/ + install = astrocrop.install + arch = x86_64 + license = custom + depends = libxxf86vm + depends = at-spi2-core + depends = gtk2 + options = !strip + source = https://www.astrodmx-capture.org.uk/downloads/other-software/astrocrop_1.1.1a_amd64.deb + sha256sums = d0ac01222721d63b41da0177696f161b73ae293285836b19ee577670359da193 + +pkgname = astrocrop diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c7e525169615 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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" +} diff --git a/astrocrop.install b/astrocrop.install new file mode 100644 index 000000000000..59562f314fe7 --- /dev/null +++ b/astrocrop.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 +} |