recipe 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. # Build recipe for avahi-tqt.
  2. #
  3. # Copyright (c) 2020 Matias Fonzo, <selk@dragora.org>.
  4. #
  5. # Licensed under the Apache License, Version 2.0 (the "License");
  6. # you may not use this file except in compliance with the License.
  7. # You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. program=avahi-tqt-trinity
  17. pkgname=avahi_tqt
  18. version=14.0.7
  19. release=1
  20. # Set 'outdir' for a nice and well-organized output directory
  21. outdir="${outdir}/${arch}/tde"
  22. tarname=${program}-${version}.tar.xz
  23. # Remote source(s)
  24. fetch=http://mirror.ppa.trinitydesktop.org/trinity/releases/R${version}/main/dependencies/$tarname
  25. description="
  26. "
  27. homepage=http://www.trinitydesktop.org/
  28. license=
  29. # Source documentation
  30. docs="AUTHORS COPYING ChangeLog NEWS README"
  31. docsdir="${docdir}/${pkgname}-${version}"
  32. build()
  33. {
  34. set -e
  35. unpack "${tardir}/$tarname"
  36. cd "$srcdir"
  37. # Set sane permissions
  38. chmod -R u+w,go-w,a+rX-s .
  39. mkdir BUILD
  40. cd BUILD
  41. cmake \
  42. -DCMAKE_CXX_FLAGS_RELEASE:STRING="$QICXXFLAGS" \
  43. -DCMAKE_SHARED_LINKER_FLAGS:STRING="$QILDFLAGS" \
  44. -DCMAKE_INSTALL_PREFIX=/opt/trinity \
  45. -DLIB_SUFFIX=${libSuffix} \
  46. -DCMAKE_VERBOSE_MAKEFILE=ON \
  47. -DCMAKE_BUILD_TYPE=Release \
  48. -DCMAKE_SKIP_INSTALL_RPATH=YES \
  49. -DWITH_ALL_OPTIONS=ON \
  50. ..
  51. make -j${jobs}
  52. make -j${jobs} DESTDIR="$destdir" install
  53. # Compress and link man pages (if needed)
  54. if test -d "${destdir}/$mandir"
  55. then
  56. (
  57. cd "${destdir}/$mandir"
  58. find . -type f -exec lzip -9 '{}' +
  59. find . -type l | while read -r file
  60. do
  61. ln -sf "$(readlink -- "$file").lz" "${file}.lz"
  62. rm -- "$file"
  63. done
  64. )
  65. fi
  66. cd ..
  67. # Copy documentation
  68. # mkdir -p "${destdir}${docsdir}"
  69. # cp -p $docs "${destdir}${docsdir}"
  70. }