not_anonymous

PKGBUILD

Mar 23rd, 2017
125
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Carsten Feuls <archlinux@carstenfeuls.de> aka DL1CAF
  2. # Contributor: not_anonymous <nmlibertarian@gmail.com>
  3. # Contributor: [Vitaliy Berdinskikh](mailto:ur6lad@archlinux.org.ua) aka UR6LAD
  4. # Original Submission: Bob Finch <w9ya@qrparci.net>
  5.  
  6. pkgname=grig
  7. pkgver=0.8.1
  8. pkgrel=2
  9. pkgdesc="Ham Radio - Rig control (cat) program"
  10. arch=('i686' 'x86_64' 'armv5h' 'armv6h' 'armv7h')
  11. url="http://groundstation.sourceforge.net/grig/"
  12. license=('GPL')
  13. depends=('hamlib' 'gtk2' 'hamradio-menus')
  14. makedepends=('autoconf' 'automake' 'intltool' 'pkg-config')
  15. source=("http://downloads.sourceforge.net/groundstation/$pkgname-$pkgver.tar.gz"
  16. "$pkgname.desktop")
  17.  
  18. prepare() {
  19. cd $srcdir/$pkgname-$pkgver
  20.  
  21. sed -i -e "s:GtkTooltips:GtkTooltip:" src/grig-gtk-workarounds.c
  22. sed -i -e "s:GtkTooltips:GtkTooltip:" src/rig-gui-vfo.c
  23. sed -i -e "s:GtkTooltips:GtkTooltip:" src/rig-gui-buttons.c
  24. sed -i -e "s:GtkTooltips:GtkTooltip:" src/rig-gui-levels.c
  25.  
  26. autoreconf -i
  27. }
  28.  
  29. build(){
  30. cd $srcdir/$pkgname-$pkgver
  31.  
  32. ./configure --prefix=/usr
  33. make
  34. }
  35.  
  36. package() {
  37. cd $srcdir/$pkgname-$pkgver
  38.  
  39. make DESTDIR=${pkgdir} install
  40.  
  41. mkdir -p $pkgdir/usr/share/applications
  42. install -D -m 644 ../$pkgname.desktop $pkgdir/usr/share/applications
  43.  
  44. cd $pkgdir/usr/share/pixmaps/grig
  45. cp -a $pkgname-logo.png ../.
  46. }
  47. md5sums=('a9c0bbd58ba48d01a2fc4bcdc7bc44fc'
  48. 'e652ce82c1fbf8ead412e978921d8025')
  49. sha256sums=('be8687418fb23efa0468674c3fdd15340fed06eef09be9de21106cc17e033c25'
  50. '85941679f966eab51a5f90450447cc4b321040978287b7066f8edb1cd0bf537a')
RAW Paste Data