Skip to content

Instantly share code, notes, and snippets.

@dnaeon
Created June 1, 2023 14:52
Show Gist options
  • Save dnaeon/8e02f2652213cf19658c64d2953ec192 to your computer and use it in GitHub Desktop.
Save dnaeon/8e02f2652213cf19658c64d2953ec192 to your computer and use it in GitHub Desktop.
gpredict-git AUR
diff --git a/.SRCINFO b/.SRCINFO
index 4f0eb4b..b8a3436 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = gpredict-git
- pkgdesc = Gpredict is a real-time satellite tracking and orbit prediction application.
- pkgver = 2.0.r1.g9036811
+ pkgdesc = Gpredict satellite tracking application
+ pkgver = 2.3.r115.0f3beb6
pkgrel = 1
url = http://gpredict.oz9aec.net/
arch = i686
@@ -10,15 +10,12 @@ pkgbase = gpredict-git
makedepends = autoconf
makedepends = automake
makedepends = intltool
- depends = curl>=7.19
- depends = goocanvas>=2
- optdepends = hamlib: rig interfacing/control
- optdepends = libreoffice: read /usr/share/doc/gpredict/um/gredict-user-manual.odt
+ depends = curl
+ depends = goocanvas
+ optdepends = hamlib: Ham radio equipment control libraries
provides = gpredict
conflicts = gpredict
- options = !emptydirs
- source = gpredict::git+https://github.com/csete/gpredict.git#tag=master
- md5sums = SKIP
+ source = git+https://github.com/csete/gpredict
+ sha256sums = SKIP
pkgname = gpredict-git
-
diff --git a/PKGBUILD b/PKGBUILD
index b188fc0..0b34313 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,58 +1,42 @@
# Maintainer: not_anonymous <[email protected]>
+# Contributor: Marin Atanasov Nikolov <[email protected]>
# Contributor: Andrey Semisokhin <[email protected]>
# Original Submission: Bob Finch <[email protected]>
-pkgname=gpredict-git
_pkgname=gpredict
-pkgver=2.0.r1.g9036811
+pkgname="${_pkgname}-git"
+pkgver=2.3.r115.0f3beb6
pkgrel=1
-pkgdesc="Gpredict is a real-time satellite tracking and orbit prediction application."
+pkgdesc='Gpredict satellite tracking application'
arch=('i686' 'x86_64')
-url="http://gpredict.oz9aec.net/"
+url='http://gpredict.oz9aec.net/'
license=('GPL')
-depends=('curl>=7.19' 'goocanvas>=2')
+depends=('curl' 'goocanvas')
makedepends=('git' 'autoconf' 'automake' 'intltool')
-optdepends=('hamlib: rig interfacing/control'
- 'libreoffice: read /usr/share/doc/gpredict/um/gredict-user-manual.odt')
+optdepends=('hamlib: Ham radio equipment control libraries')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
-options=('!emptydirs')
-source=("$_pkgname::git+https://github.com/csete/$_pkgname.git#tag=master")
+source=('git+https://github.com/csete/gpredict')
+sha256sums=('SKIP')
pkgver() {
- cd $_pkgname
-
- git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+ cd "${_pkgname}"
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g;s/\.rc./rc/g'
}
build() {
- cd $srcdir/$_pkgname
-
- ./autogen.sh
- ./configure --prefix=/usr
- make
+ cd "${_pkgname}"
+ ./autogen.sh
+ ./configure --prefix=/usr
+ make
}
check() {
- cd $srcdir/$_pkgname
-
-# make check
-# make -k check
- make -i check
+ cd "${_pkgname}"
+ make -k check
}
-
-package()
-{
- cd $srcdir/$_pkgname
-
- make DESTDIR=$pkgdir install
-
- mkdir -p $pkgdir/usr/share/doc/${_pkgname}/{notes,um}
- install -m644 doc/notes/* $pkgdir/usr/share/doc/${_pkgname}/notes/.
- install -m644 doc/um/* $pkgdir/usr/share/doc/${_pkgname}/um/.
- rm -rf $pkgdir/usr/share/${_pkgname}/COPYING
- sed -i '$ a\X-DCOP-ServiceType=none' $pkgdir/usr/share/applications/${_pkgname}.desktop
- sed -i '$ a\X-KDE-SubstituteUID=false' $pkgdir/usr/share/applications/${_pkgname}.desktop
+package() {
+ cd "${_pkgname}"
+ make DESTDIR="${pkgdir}/" install
}
-md5sums=('SKIP')
diff --git a/gpredict.install b/gpredict.install
deleted file mode 100644
index 2eaa605..0000000
--- a/gpredict.install
+++ /dev/null
@@ -1,11 +0,0 @@
-post_install() {
- update-desktop-database -q
-}
-
-post_upgrade() {
- post_install $1
-}
-
-post_remove() {
- post_install $1
-}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment