Advertisement
not_anonymous

PKGBUILD

Feb 27th, 2017
150
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Carsten Feuls <archlinux@carstenfeuls.de>
  2. # Contributor: not_anonymous <nmlibertarian@gmail.com>
  3. # Original Submission: Bob Finch <w9ya@qrparci.net>
  4.  
  5. pkgname=klog
  6. pkgver=0.9.2.5
  7. pkgrel=2
  8. pkgdesc="Ham Radio logging with Dx Cluster - Qt based"
  9. url="http://jaime.robles.es/"
  10. license=('GPL3')
  11. arch=('i686' 'x86_64')
  12. depends=('qt5-base')
  13. optdepends=('hamlib: rig interfacing'
  14. 'sglite>=3.0.0: database manipulation')
  15. makedepends=('automoc4' 'qt5-tools')
  16. source=("http://download-mirror.savannah.gnu.org/releases/$pkgname/$pkgname-$pkgver.tar.gz"
  17. $pkgname.png
  18. $pkgname.desktop
  19. klog.pro.diff
  20. awards.cpp.diff.fixed
  21. translations.pri.diff
  22. )
  23.  
  24. prepare() {
  25. cd $srcdir/$pkgname-$pkgver
  26.  
  27. patch -p0 < ../klog.pro.diff
  28. patch -p0 < ../awards.cpp.diff.fixed
  29. patch -p0 < ../translations.pri.diff
  30. }
  31.  
  32. build() {
  33. cd $srcdir/$pkgname-$pkgver
  34.  
  35. qmake-qt5 -o Makefile PREFIX=/usr klog.pro
  36. make
  37. }
  38.  
  39. package() {
  40. cd $srcdir/$pkgname-$pkgver
  41.  
  42. make INSTALL_ROOT="$pkgdir/" install
  43.  
  44. install -Dm644 $pkgname.1 "$pkgdir/usr/share/man/man1/$pkgname.1"
  45. find "$pkgdir/usr/share/man/man1" -name *.1 -exec gzip -9 {} +
  46.  
  47. install -Dm644 ../$pkgname.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
  48. install -Dm644 ../$pkgname.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
  49. }
  50. md5sums=('91609afec43116b1c7925bbf8aebf3a2'
  51. '0ba1caca72114240fa901b01a8662b5a'
  52. '6667836bd922592ad69bc705711391d0'
  53. 'c1598d74eee4c615447aada59a773a56'
  54. '0691338983e3669e53a37ccc9ba1a03f'
  55. 'b96c67f5efa881d9b121f5725c7df708')
  56. sha256sums=('8875205454eca23f733e750bb274681d6ae517dd5ed67e55a94a2a9e6e004b48'
  57. 'd03aaf4baa5aeb30d24f9ad075be14e9f18129e726311f391cb69bc393ade1ef'
  58. '471211041546296877ef6f6ce5c5082dc37ac8cd6088b7c811fc28f919513700'
  59. '8821c10067bb670177a39fb5c51808454e54c7227d6b9b5eac8298ac7bd4736d'
  60. '2c23edd44b73b1bf893180e2f5cc633958539bb507d367fd18884ffe4f10eee7'
  61. '13fe98d3c15fdb485497a72e0716af7c527a21cfbf81a0a28cc8c3c6dc5adf99')
Advertisement
RAW Paste Data Copied
Advertisement