1 # Build recipe for xorgproto.
3 # Copyright (c) 2018-2019 Matias Fonzo, <selk@dragora.org>.
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
9 # http://www.apache.org/licenses/LICENSE-2.0
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.
21 # Define hash tag to categorize the package name output
24 tarname=${program}-${version}.tar.bz2
27 fetch=http://www.x.org/releases/individual/proto/$tarname
30 X Window System Unified Protocol.
32 This package provides the headers and specification documents defining
33 the core protocol and (many) extensions for the X Window System. The
34 extensions are those common among servers descended from X.Org 6.7. It
35 also includes a number of headers that aren't purely protocol related,
36 but are depended upon by many other X Window System packages to provide
37 common definitions and porting layer.
40 homepage=http://www.x.org
41 license="MIT X Consortium"
43 # Source documentation
44 docs="AUTHORS COPYING* README.md"
45 docsdir="${docdir}/${program}-${version}"
51 unpack "${tardir}/$tarname"
55 # Set sane permissions
56 chmod -R u+w,go-w,a+rX-s .
61 meson setup $configure_args \
62 --libdir /usr/lib${libSuffix} \
69 DESTDIR="$destdir" ninja install
71 # This is provided by 'xorg/lib/libXvMC' currently
72 rm "${destdir}/usr/include/X11/extensions/vldXvMC.h"
76 # Compress and link man pages (if needed)
77 if test -d "${destdir}/$mandir"
80 cd "${destdir}/$mandir"
81 find . -type f -exec lzip -9 '{}' +
82 find . -type l | while read -r file
84 ln -sf "$(readlink -- "$file").lz" "${file}.lz"
91 mkdir -p "${destdir}${docsdir}"
92 cp -p $docs "${destdir}${docsdir}"