summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorŁukasz Pożarlik2020-05-04 16:41:16 +0200
committerŁukasz Pożarlik2020-05-04 16:41:16 +0200
commit12ed437d9dbb32340a0fb59efdc854aec9af24e4 (patch)
treee9f759e6ce770e0cd3b4a5107cb374c2791afeb6
parent280219932822f0188fa5eb15427b1e62411303f1 (diff)
downloadaur-12ed437d9dbb32340a0fb59efdc854aec9af24e4.tar.gz
Add environment settings
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD9
-rw-r--r--gsc.sh5
3 files changed, 14 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index de895b220cd..ea7dafdef22 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,16 @@
pkgbase = gsc
pkgdesc = All-sky catalog of positions and magnitudes for ~19 million stars and other objects
pkgver = 1.2
- pkgrel = 1
+ pkgrel = 2
url = http://gsss.stsci.edu/Catalogs/GSC/GSC1/GSC1.htm
arch = i686
arch = x86_64
license = GPL2
makedepends = cmake
source = http://cdsarc.u-strasbg.fr/viz-bin/nph-Cat/tar.gz?bincats/GSC_1.2
+ source = gsc.sh
sha256sums = b2e360a22148a1d669304c819b983c5a60e634544068f2f5eaf38afc53482f5d
+ sha256sums = 59387f8ab62f582465ea97e9b586cccb5f0432f9f8158774ac66030e1bb911f8
pkgname = gsc
diff --git a/PKGBUILD b/PKGBUILD
index 66ecd9a3d52..4f5f56323cb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,15 +2,17 @@
pkgname=gsc
pkgver=1.2
-pkgrel=1
+pkgrel=2
pkgdesc="All-sky catalog of positions and magnitudes for ~19 million stars and other objects"
url=""http://gsss.stsci.edu/Catalogs/GSC/GSC1/GSC1.htm
license=(GPL2)
arch=(i686 x86_64)
depends=()
makedepends=(cmake)
-source=("http://cdsarc.u-strasbg.fr/viz-bin/nph-Cat/tar.gz?bincats/GSC_${pkgver}")
-sha256sums=('b2e360a22148a1d669304c819b983c5a60e634544068f2f5eaf38afc53482f5d')
+source=("http://cdsarc.u-strasbg.fr/viz-bin/nph-Cat/tar.gz?bincats/GSC_${pkgver}"
+ "gsc.sh")
+sha256sums=('b2e360a22148a1d669304c819b983c5a60e634544068f2f5eaf38afc53482f5d'
+ '59387f8ab62f582465ea97e9b586cccb5f0432f9f8158774ac66030e1bb911f8')
build() {
GSCBIN=/usr/share/GSC/bin
@@ -28,4 +30,5 @@ package() {
install -v -m 755 -D src/gsc.exe "${pkgdir}/usr/share/GSC/bin/gsc"
install -v -m 644 -D bin/regions.bin "${pkgdir}/usr/share/GSC/bin/regions.bin"
install -v -m 644 -D bin/regions.ind "${pkgdir}/usr/share/GSC/bin/regions.ind"
+ install -v -m 644 -D gsc.sh "${pkgdir}/etc/profile.d/gsc.sh"
}
diff --git a/gsc.sh b/gsc.sh
new file mode 100644
index 00000000000..f16772be594
--- /dev/null
+++ b/gsc.sh
@@ -0,0 +1,5 @@
+# GSC environment
+
+export GSCBIN=/usr/share/GSC/bin
+export GSCDAT=/usr/share/GSC
+export PATH=$GSCBIN:$PATH