master hovercats/oakiss / repo / xkeyboard-config / build
 1#!/bin/sh -e
 2
 3export PATH=/usr/bin:$PATH
 4
 5# Swap to shell script instead of perl script
 6# for conversion of rules files. See files/xml2lst.
 7sed 's/xml2lst\.pl/xml2lst/' rules/meson.build > _
 8mv -f _ rules/meson.build
 9
10# Remove po/ dir.
11sed "/subdir('po')/d" meson.build > _
12mv -f _ meson.build
13
14export DESTDIR="$1"
15
16muon setup \
17    -Dprefix=/usr \
18    -Dnls=false \
19    build
20
21samu -C build
22muon -C build install
23
24# Compress manpages
25find "$1/usr/share/man" -type f -exec gzip -n -9 {} +
26
27# fix manpage symlink
28ln -sf xkeyboard-config-2.7.gz "$1/usr/share/man/man7/xkeyboard-config.7"