diff options
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 35 |
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..47215e232277 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = celestia-appimage-latest + pkgdesc = Real-time space simulation + pkgver = 1 + pkgrel = 1 + url = https://github.com/CelestiaProject/Celestia + arch = x86_64 + license = GPL + depends = gtk2 + options = !strip + source = https://download.opensuse.org/repositories/home:/munix9:/unstable/AppImage/celestia-latest-x86_64.AppImage + sha256sums = SKIP + +pkgname = celestia-appimage-latest diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..098fe404216d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +_pkgname=celestia +_appimage="${_pkgname}-latest-x86_64.AppImage" +_desktopfile="space.celestiaproject.celestia.desktop" + +pkgname=celestia-appimage-latest +pkgver=1 +pkgrel=1 +pkgdesc="Real-time space simulation" +arch=(x86_64) +license=(GPL) +url="https://github.com/CelestiaProject/Celestia" +depends=('gtk2') +options=(!strip) +source=("https://download.opensuse.org/repositories/home:/munix9:/unstable/AppImage/celestia-latest-x86_64.AppImage") +sha256sums=('SKIP') + + +prepare() { + chmod +x ${_appimage} + ./${_appimage} --appimage-extract usr/share/applications/${_desktopfile} + ./${_appimage} --appimage-extract usr/share/pixmaps/${_pkgname}.png +} + +package() { + install -Dpm755 "${_appimage}" "${pkgdir}/opt/${_pkgname}/${_appimage}" # Install $_appimage to /opt/$_pkgname/$_appimage + install -d "${pkgdir}/usr/bin" # Install /usr/bin + ln -s "/opt/${_pkgname}/${_appimage}" "${pkgdir}/usr/bin/${_pkgname}" # Link /opt/$_pkgname/$_appimage to /usr/bin/$_pkgname + + # Desktop file + install -Dm644 "${srcdir}/squashfs-root/usr/share/applications/${_desktopfile}" "${pkgdir}/usr/share/applications/${pkgname}.desktop" + + # Icon images + install -dm755 "${pkgdir}/usr/share/pixmaps" + install -Dm644 "${srcdir}/squashfs-root/usr/share/pixmaps/celestia.png" "${pkgdir}/usr/share/pixmaps/celestia.png" +} |