Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Re: Trustedqsl's PKGBUILD as of 14-Dec-14
- 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.
- (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.)
- $ diff PKGBUILD PKGBUILD.org >> diff.PKGBUILD
- $ cat diff.PKGBUILD
- 2d1
- <
- 5,7c4,7
- < pkgrel=2
- < pkgdesc="QSO log signing data for the ARRL Logbook of The World (LoTW)"
- < arch=('i686' 'x86_64')
- ---
- > pkgrel=1
- > epoch=
- > pkgdesc="TrustedQSL - Logbook of the World"
- > arch=('x86_64' 'i686')
- 9,20c9,16
- < license=('custom:ARRL')
- < depends=('wxgtk2.8' 'curl' 'desktop-file-utils')
- < makedepends=('cmake')
- < provides=('tqsllib')
- < conflicts=('trustedqsl-devel')
- < replaces=('tqsl')
- < install=$pkgname.install
- < source=(http://www.arrl.org/files/file/LoTW%20Instructions/tqsl-${pkgver}.tgz
- < diff.CMakeLists.txt.apps
- < diff.CMakeLists.txt.src
- < $pkgname.desktop
- < $pkgname.install)
- ---
- > license=('ARRL')
- > groups=()
- > replaces=(tsql)
- > depends=(openssl expat zlib wxgtk curl)
- > makedepends=(openssl expat zlib wxgtk curl cmake)
- > source=(http://www.arrl.org/files/file/LoTW%20Instructions/tqsl-${pkgver}.tgz)
- > md5sums=('0e62df9f8c2fbb4b5d42d3ee9111c75a')
- > sha1sums=('d1ded1c8e55dcacc194db79a32c9e8fab6995af7')
- 24,27d19
- <
- < patch -p0 < ../diff.CMakeLists.txt.apps
- < patch -p0 < ../diff.CMakeLists.txt.src
- <
- 41,47d32
- <
- < install -D -m644 "../LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
- <
- < mkdir -p $pkgdir/usr/share/applications
- < install -D -m 644 ../../$pkgname.desktop $pkgdir/usr/share/applications
- <
- < rm -rf $pkgdir/usr/include
- 49,58d33
- < md5sums=('0e62df9f8c2fbb4b5d42d3ee9111c75a'
- < 'bbdec5f6ae2d23bb2c74c84df07d2c70'
- < '8f401e02bfdefb486bbbeaba58522486'
- < '860b305f9cf6db8cc1c14dc88cef34fc'
- < 'f7e1e2722c972f3420cfd69492c79073')
- < sha256sums=('87527e2b69a6e91ef3b13793f3aa32a271ca3b173e09df3a6eac8365b492a604'
- < '84eb4f182e90d6996d687952e82c47c2cc7c8fcd95a4290ef7b8c77b4d7b6e4e'
- < '0adb97d5a65701465309b8fed0fe8fbc04400d3342102887f05fddf52d985f87'
- < 'cb638467e305f6f9426a22841dbbb4d656a30f48e4c1c27e87dd82890794c167'
- < 'f703f8de14eb277dc72cc837086fbd55f5d772049a44200686c8ae76348f6614')
- AND the NEW files:
- $ cat diff.CMakeLists.txt.apps
- --- apps/CMakeLists.txt 2014-07-16 19:22:16.000000000 -0600
- +++ apps/CMakeLists.txt 2014-12-12 20:00:36.326544639 -0700
- @@ -124,3 +124,3 @@
- - SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
- - SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
- - SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
- + SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
- + SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH FALSE)
- + SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib/trustedqsl")
- $ cat diff.CMakeLists.txt.src
- --- src/CMakeLists.txt 2014-07-16 19:22:16.000000000 -0600
- +++ src/CMakeLists.txt 2014-12-12 20:01:49.669873492 -0700
- @@ -57 +57 @@
- -install(TARGETS tqsllib DESTINATION lib)
- +install(TARGETS tqsllib DESTINATION lib/trustedqsl)
- $ cat trustedqsl.desktop
- [Desktop Entry]
- Name=TrustedQSL
- Name[en_US]=TrustedQSL
- Comment=Sign QSO data for upload to LoTW
- Comment[en_US]=Sign QSO data for upload to LoTW
- Encoding=UTF-8
- Exec=/usr/bin/tqsl %F
- Icon=TrustedQSL.png
- MimeType=text/plain
- StartupNotify=true
- Terminal=false
- TerminalOptions=
- Type=Application
- Categories=Application;HamRadio
- X-DCOP-ServiceType=none
- X-KDE-SubstituteUID=false
- $ cat trustedqsl.install
- post_install() {
- update-desktop-database -q
- }
- post_upgrade() {
- post_install $1
- }
- post_remove() {
- post_install $1
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement