recipe 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # Build recipe for xdotool.
  2. #
  3. # Copyright (c) 2018 Markus Tornow, <tornow@riseup.net>.
  4. # Copyright (c) 2018, 2020 Matias Fonzo, <selk@dragora.org>.
  5. #
  6. # Licensed under the Apache License, Version 2.0 (the "License");
  7. # you may not use this file except in compliance with the License.
  8. # You may obtain a copy of the License at
  9. #
  10. # http://www.apache.org/licenses/LICENSE-2.0
  11. #
  12. # Unless required by applicable law or agreed to in writing, software
  13. # distributed under the License is distributed on an "AS IS" BASIS,
  14. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. # See the License for the specific language governing permissions and
  16. # limitations under the License.
  17. # Exit immediately on any error
  18. set -e
  19. program=xdotool
  20. version=3.20160805.1
  21. release=1
  22. # Define a category for the output of the package name
  23. pkgcategory=x-apps
  24. tarname=${program}-${version}.tar.gz
  25. # Remote source(s)
  26. fetch=https://github.com/jordansissel/xdotool/releases/download/v${version}/$tarname
  27. homepage=https://www.semicomplete.com/projects/xdotool/
  28. description="
  29. Fake input from the mouse and keyboard very easily.
  30. xdotool also supports window manager actions such as moving,
  31. activating, and other actions on windows.
  32. For more information, visit:
  33. $homepage
  34. "
  35. homepage=https://www.semicomplete.com/projects/xdotool/
  36. license=Custom
  37. # Source documentation
  38. docs="CHANGELIST COPYRIGHT README VERSION examples/"
  39. docsdir="${docdir}/${program}-${version}"
  40. build()
  41. {
  42. unpack "${tardir}/$tarname"
  43. cd "$srcdir"
  44. make showman
  45. make -j${jobs} V=1 CPPFLAGS="$QICPPFLAGS" CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
  46. PREFIX=/usr \
  47. INSTALLLIB=/usr/lib${libSuffix} \
  48. INSTALLMAN=$mandir \
  49. LDCONFIG=true \
  50. DESTDIR="$destdir" \
  51. install
  52. lzip -9 "${destdir}/${mandir}/man1/xdotool.1"
  53. # Copy documentation
  54. mkdir -p "${destdir}/$docsdir"
  55. cp -p -r $docs "${destdir}/$docsdir"
  56. }