recipe 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # Build recipe for xdotool.
  2. #
  3. # Copyright (c) 2018 Markus Tornow, <tornow@riseup.net>.
  4. # Copyright (c) 2018 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. program=xdotool
  18. version=3.20160805.1
  19. release=1
  20. # Set 'outdir' for a nice and well-organized output directory
  21. outdir="${outdir}/${arch}/community/x-apps"
  22. tarname=${program}-${version}.tar.gz
  23. # Remote source(s)
  24. fetch=http://github.com/jordansissel/xdotool/releases/download/v${version}/$tarname
  25. homepage=http://www.semicomplete.com/projects/xdotool/
  26. description="
  27. Fake input from the mouse and keyboard very easily.
  28. xdotool also supports window manager actions such as moving,
  29. activating, and other actions on windows.
  30. For more information, visit:
  31. $homepage
  32. "
  33. homepage=http://www.semicomplete.com/projects/xdotool/
  34. license=Custom
  35. # Source documentation
  36. docs="CHANGELIST COPYRIGHT README VERSION examples/"
  37. docsdir="${docdir}/${program}-${version}"
  38. build()
  39. {
  40. set -e
  41. unpack "${tardir}/$tarname"
  42. cd "$srcdir"
  43. make showman
  44. make -j${jobs} V=1 CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
  45. PREFIX=/usr \
  46. INSTALLLIB=/usr/lib${libSuffix} \
  47. INSTALLMAN=$mandir \
  48. LDCONFIG=true \
  49. DESTDIR="$destdir" \
  50. install
  51. lzip -9 "${destdir}/${mandir}/man1/xdotool.1"
  52. # Copy documentation
  53. mkdir -p "${destdir}${docsdir}"
  54. cp -p -r $docs "${destdir}${docsdir}/"
  55. }