recipes: move dragora-ice to ../testing; move some recipes to community/
[dragora.git] / recipes / community / x-apps / xdotool / recipe
blob2454a0fdfa101f8ff8ffbd8ed7ce5e7842bc2c8f
1 # Build recipe for xdotool.
3 # Copyright (c) 2018 Markus Tornow, <tornow@riseup.net>.
4 # Copyright (c) 2018 Matias Fonzo, <selk@dragora.org>.
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
10 #    http://www.apache.org/licenses/LICENSE-2.0
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.
18 program=xdotool
19 version=3.20160805.1
20 release=1
22 # Set 'outdir' for a nice and well-organized output directory
23 outdir="${outdir}/${arch}/x-apps"
25 tarname=${program}-${version}.tar.gz
27 # Remote source(s)
28 fetch=http://github.com/jordansissel/xdotool/releases/download/v${version}/$tarname
30 homepage=http://www.semicomplete.com/projects/xdotool/
32 description="
33 Fake input from the mouse and keyboard very easily.
35 xdotool also supports window manager actions such as moving,
36 activating, and other actions on windows.
38 For more information, visit:
39 $homepage
42 homepage=http://www.semicomplete.com/projects/xdotool/
43 license=Custom
45 # Source documentation
46 docs="CHANGELIST COPYRIGHT README VERSION examples/"
47 docsdir="${docdir}/${program}-${version}"
49 build()
51     set -e
53     unpack "${tardir}/$tarname"
55     cd "$srcdir"
57     make showman
59     make -j${jobs} V=1 CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
60           PREFIX=/usr \
61           INSTALLLIB=/usr/lib${libSuffix} \
62           INSTALLMAN=$mandir \
63           LDCONFIG=true \
64           DESTDIR="$destdir" \
65           install
67     lzip -9 "${destdir}/${mandir}/man1/xdotool.1"
69     # Copy documentation
70     mkdir -p "${destdir}${docsdir}"
71     cp -p -r $docs "${destdir}${docsdir}/"