Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2022
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.69 KB | None | 0 0
  1. From ae67f7ae0e6810f3ebf992e73a57a7d002263e9a Mon Sep 17 00:00:00 2001
  2. From: eggix <eggix@protonmail.com>
  3. Date: Thu, 3 Mar 2022 19:02:42 +0100
  4. Subject: [PATCH] bump to v4.4.6 and clean-up
  5.  
  6. ---
  7.  PKGBUILD | 41 ++++++++++-------------------------------
  8.  1 file changed, 10 insertions(+), 31 deletions(-)
  9.  
  10. diff --git a/PKGBUILD b/PKGBUILD
  11. index bd22225..14f94a5 100644
  12. --- a/PKGBUILD
  13. +++ b/PKGBUILD
  14. @@ -2,51 +2,30 @@
  15.  # Contributor: Vitaliy Berdinskikh ur6lad[at]i.ua
  16.  
  17.  pkgname=xnec2c
  18. -pkgver=4.1.5
  19. +pkgver=4.4.6
  20.  pkgrel=1
  21.  pkgdesc="GTK+ Antenna EM Modeling Client"
  22.  arch=('i686' 'x86_64')
  23. -#url="http://5b4az.chronos.org.uk/pages/nec2.html"
  24. -#url="http://web.archive.org/web/20110724184011/http://5b4az.chronos.org.uk/pages/nec2.html"
  25. -url="http://www.qsl.net/5b4az/pkg/nec2/xnec2c/doc/xnec2c.html"
  26. +url="https://www.xnec2c.org/"
  27.  license=('GPL')
  28. -depends=('gtk2')
  29. -optdepends=('gnuplot: to use plotted output/data files')
  30. -#source=(http://5b4az.chronos.org.uk/pkg/nec2/$pkgname/$pkgname-$pkgver.tar.bz2
  31. -#source=(http://pkgs.fedoraproject.org/repo/pkgs/$pkgname/$pkgname-$pkgver.tar.bz2/d3c1d34da5519cf66ff429de51c6c768/$pkgname-$pkgver.tar.bz2
  32. -source=("http://www.qsl.net/5b4az/pkg/nec2/xnec2c/xnec2c-$pkgver.tar.bz2"
  33. -        "$pkgname.desktop"
  34. -        "http://bjensen.fedorapeople.org/pkgs/hams/icon/Ham_Icon-1-48.png")
  35. -md5sums=('b2fecab6c6890141f1a1503484e0e5b5'
  36. -         '824c296ecb84175a5fa0905b8f357796'
  37. -         '38378f273628bd9a28d3e5f9ff39fa18')
  38. -
  39. -prepare() {
  40. -   cd "$srcdir/$pkgname-$pkgver"
  41. -   # weird error where it installs the file to a location it won't read from?
  42. -   sed -i 's|"/.xnec2c/xnec2c.glade"|"/.xnec2c/xnec2c/xnec2c.glade"|' src/main.c
  43. -}
  44. +depends=('gtk3')
  45. +optdepends=('gnuplot: to use plotted output/data files'
  46. +            'lapacke: LAPACK+BLAS support')
  47. +source=("https://github.com/KJ7LNW/xnec2c/archive/refs/tags/v$pkgver.tar.gz")
  48. +md5sums=('1d36625ba3cffd9983e932494b1656d8')
  49.  
  50.  build() {
  51.     cd "$srcdir/$pkgname-$pkgver"
  52. -   # or add AC_SEARCH_LIBS(clogl, m) to configure.in
  53. -   sed -i 's/1.14/1.15/g' {autogen.sh,aclocal.m4}
  54.     ./autogen.sh
  55. -   ./configure --prefix=/usr LDFLAGS=-lm
  56. +   ./configure --prefix=/usr
  57.     make
  58.  }
  59.  
  60.  package() {
  61.     cd "$srcdir/$pkgname-$pkgver"
  62. -   mkdir -p "$pkgdir/usr/share/"{applications,pixmaps}
  63. -
  64.     make DESTDIR="$pkgdir" install
  65.  
  66. -   # 4.1.2's improved install doesn't do these
  67. -   install -m644 examples/* "$pkgdir/usr/share/examples/$pkgname/"
  68. -
  69. -   # check if the upstream desktop can replace ours
  70. -   install -m644 ../*.desktop "$pkgdir/usr/share/applications/"
  71. -   install -m644 ../Ham_Icon-1-48.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
  72. +  # remove absolute link
  73. +  unlink "$pkgdir/usr/share/$pkgname/doc"
  74.  }
  75.  
  76. --
  77. 2.35.1
  78.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement