123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- set -e
- program=setxkbmap
- version=1.3.2
- release=1
- pkgcategory=xorg_app
- tarname=${program}-${version}.tar.bz2
- fetch=https://www.x.org/releases/individual/app/$tarname
- description="
- A client to set the keyboard using the X Keyboard extension.
- The setxkbmap command maps the keyboard to use the layout
- determined by the options specified on the command line.
- "
- homepage=https://www.x.org
- license="MIT X Consortium"
- docs="COPYING ChangeLog README.md"
- docsdir="${docdir}/${program}-${version}"
- build()
- {
- unpack "${tardir}/$tarname"
- cd "$srcdir"
-
- chmod -R u+w,go-w,a+rX-s .
- ./configure CPPFLAGS="$QICPPFLAGS" CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
- $configure_args \
- --mandir=$mandir \
- --docdir=$docsdir \
- --with-xkb-config-root=/etc/X11/xkb
- make -j${jobs} V=1
- make -j${jobs} DESTDIR="$destdir" install
-
- if test -d "${destdir}/$mandir"
- then
- (
- cd "${destdir}/$mandir"
- find . -type f -exec lzip -9 {} +
- find . -type l | while read -r file
- do
- ln -sf "$(readlink -- "$file").lz" "${file}.lz"
- rm -- "$file"
- done
- )
- fi
-
- mkdir -p "${destdir}/$docsdir"
- cp -p $docs "${destdir}/$docsdir"
- }
|