recipe 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # Build recipe for cmake (trinity).
  2. #
  3. # Copyright (c) 2021-2022 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. # Exit immediately on any error
  17. set -e
  18. program=tde-common-cmake
  19. pkgname=cmake-trinity
  20. version=20220128_0560f24
  21. arch=noarch
  22. release=1
  23. # Define a category for the output of the package name
  24. pkgcategory=tde
  25. tarname=${program}-${version}.tar.lz
  26. # Remote source(s)
  27. fetch="
  28. https://dragora.mirror.garr.it/current/sources/$tarname
  29. rsync://rsync.dragora.org/current/sources/$tarname
  30. "
  31. description="
  32. A common dependency for build TDE r14.0.11+.
  33. "
  34. homepage=https://www.trinitydesktop.org/
  35. license="Academic Free License version 2.1 | GPLv2+"
  36. # Custom source directory name
  37. srcdir=${program}-${version}
  38. build()
  39. {
  40. unpack "${tardir}/$tarname"
  41. cd "$srcdir"
  42. # Set sane permissions
  43. chmod -R u+w,go-w,a+rX-s .
  44. rm -rf BUILD
  45. mkdir BUILD
  46. cd BUILD
  47. cmake -G Ninja ..
  48. ninja -j${jobs}
  49. DESTDIR="$destdir" ninja -j${jobs} install
  50. }