Guest User

trustedqsl_PKGBUILD_updates

a guest
Dec 14th, 2014
217
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Re: Trustedqsl's PKGBUILD as of 14-Dec-14
  2.  
  3. Fixed one typo and made this into a desktop-menu style application. Also made changes to make this package arch compatible by moving the library location, creating proper provides (et al), locating (moving) the licensing file, and removing the header-files.
  4.  
  5. (I'm not so sure removing the header files is correct v/v cqrlog, but then again the latest versions of the cqrlog stuff is problematic anyways...sigh.)
  6.  
  7. $ diff PKGBUILD PKGBUILD.org >> diff.PKGBUILD
  8. $ cat diff.PKGBUILD
  9. 2d1
  10. <
  11. 5,7c4,7
  12. < pkgrel=2
  13. < pkgdesc="QSO log signing data for the ARRL Logbook of The World (LoTW)"
  14. < arch=('i686' 'x86_64')
  15. ---
  16. > pkgrel=1
  17. > epoch=
  18. > pkgdesc="TrustedQSL - Logbook of the World"
  19. > arch=('x86_64' 'i686')
  20. 9,20c9,16
  21. < license=('custom:ARRL')
  22. < depends=('wxgtk2.8' 'curl' 'desktop-file-utils')
  23. < makedepends=('cmake')
  24. < provides=('tqsllib')
  25. < conflicts=('trustedqsl-devel')
  26. < replaces=('tqsl')
  27. < install=$pkgname.install
  28. < source=(http://www.arrl.org/files/file/LoTW%20Instructions/tqsl-${pkgver}.tgz
  29. < diff.CMakeLists.txt.apps
  30. < diff.CMakeLists.txt.src
  31. < $pkgname.desktop
  32. < $pkgname.install)
  33. ---
  34. > license=('ARRL')
  35. > groups=()
  36. > replaces=(tsql)
  37. > depends=(openssl expat zlib wxgtk curl)
  38. > makedepends=(openssl expat zlib wxgtk curl cmake)
  39. > source=(http://www.arrl.org/files/file/LoTW%20Instructions/tqsl-${pkgver}.tgz)
  40. > md5sums=('0e62df9f8c2fbb4b5d42d3ee9111c75a')
  41. > sha1sums=('d1ded1c8e55dcacc194db79a32c9e8fab6995af7')
  42. 24,27d19
  43. <
  44. < patch -p0 < ../diff.CMakeLists.txt.apps
  45. < patch -p0 < ../diff.CMakeLists.txt.src
  46. <
  47. 41,47d32
  48. <
  49. < install -D -m644 "../LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
  50. <
  51. < mkdir -p $pkgdir/usr/share/applications
  52. < install -D -m 644 ../../$pkgname.desktop $pkgdir/usr/share/applications
  53. <
  54. < rm -rf $pkgdir/usr/include
  55. 49,58d33
  56. < md5sums=('0e62df9f8c2fbb4b5d42d3ee9111c75a'
  57. < 'bbdec5f6ae2d23bb2c74c84df07d2c70'
  58. < '8f401e02bfdefb486bbbeaba58522486'
  59. < '860b305f9cf6db8cc1c14dc88cef34fc'
  60. < 'f7e1e2722c972f3420cfd69492c79073')
  61. < sha256sums=('87527e2b69a6e91ef3b13793f3aa32a271ca3b173e09df3a6eac8365b492a604'
  62. < '84eb4f182e90d6996d687952e82c47c2cc7c8fcd95a4290ef7b8c77b4d7b6e4e'
  63. < '0adb97d5a65701465309b8fed0fe8fbc04400d3342102887f05fddf52d985f87'
  64. < 'cb638467e305f6f9426a22841dbbb4d656a30f48e4c1c27e87dd82890794c167'
  65. < 'f703f8de14eb277dc72cc837086fbd55f5d772049a44200686c8ae76348f6614')
  66.  
  67. AND the NEW files:
  68.  
  69. $ cat diff.CMakeLists.txt.apps
  70. --- apps/CMakeLists.txt 2014-07-16 19:22:16.000000000 -0600
  71. +++ apps/CMakeLists.txt 2014-12-12 20:00:36.326544639 -0700
  72. @@ -124,3 +124,3 @@
  73. - SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
  74. - SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
  75. - SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
  76. + SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
  77. + SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH FALSE)
  78. + SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib/trustedqsl")
  79.  
  80. $ cat diff.CMakeLists.txt.src
  81. --- src/CMakeLists.txt 2014-07-16 19:22:16.000000000 -0600
  82. +++ src/CMakeLists.txt 2014-12-12 20:01:49.669873492 -0700
  83. @@ -57 +57 @@
  84. -install(TARGETS tqsllib DESTINATION lib)
  85. +install(TARGETS tqsllib DESTINATION lib/trustedqsl)
  86.  
  87. $ cat trustedqsl.desktop
  88. [Desktop Entry]
  89. Name=TrustedQSL
  90. Name[en_US]=TrustedQSL
  91. Comment=Sign QSO data for upload to LoTW
  92. Comment[en_US]=Sign QSO data for upload to LoTW
  93. Encoding=UTF-8
  94. Exec=/usr/bin/tqsl %F
  95. Icon=TrustedQSL.png
  96. MimeType=text/plain
  97. StartupNotify=true
  98. Terminal=false
  99. TerminalOptions=
  100. Type=Application
  101. Categories=Application;HamRadio
  102. X-DCOP-ServiceType=none
  103. X-KDE-SubstituteUID=false
  104.  
  105. $ cat trustedqsl.install
  106. post_install() {
  107. update-desktop-database -q
  108. }
  109.  
  110. post_upgrade() {
  111. post_install $1
  112. }
  113.  
  114. post_remove() {
  115. post_install $1
  116. }
RAW Paste Data