recipe 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # Build recipe for pygobject.
  2. #
  3. # Copyright (C) 2019 Kevin "The Nuclear" Bloom, <nuclearkev@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. #
  17. # Based on recipes written by Mateus P. Rodrigues, <mprodrigues@dragora.org>
  18. # and Matias Fonzo, <selk@dragora.org>.
  19. program=pygobject
  20. version=2.90.4
  21. release=1
  22. tarname=${program}-${version}.tar.xz
  23. # Remote source(s)
  24. # fetch=ftp.gnome.org/pub/GNOME/sources/pygobject/2.90/$tarname
  25. description="
  26. pygobject - a python toolkit for glib/gobject
  27. "
  28. homepage=http://gnome.org
  29. license="LGPLv2.1"
  30. # Source documentation
  31. docs="AUTHORS COPYING ChangeLog* INSTALL NEWS PKG-INFO* README"
  32. docsdir="${docdir}/${program}-${version}"
  33. build()
  34. {
  35. set -e
  36. unpack "${tardir}/$tarname"
  37. cd "$srcdir"
  38. ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
  39. $configure_args \
  40. --libdir=/usr/lib${libSuffix} \
  41. --infodir=$infodir \
  42. --mandir=$mandir \
  43. --docdir=$docdir
  44. make -j${jobs} V=1
  45. make -j${jobs} DESTDIR="$destdir" install
  46. # Delete index file for the package
  47. if test -d "${destdir}/$infodir"
  48. then
  49. rm -f "${destdir}/${infodir}/dir"
  50. fi
  51. # Copy documentation
  52. mkdir -p "${destdir}${docsdir}"
  53. for file in $docs
  54. do
  55. if test -e $file
  56. then
  57. cp -p $file "${destdir}${docsdir}"
  58. fi
  59. done
  60. }