aboutsummaryrefslogtreecommitdiff
path: root/community/zathura/build
blob: 86589ef0d20a4e1eb32edbadca92cda4ba6241f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh -e

patch -p1 < remove_gettext.patch

# Fix build errors when appstream-glib or
# desktop-file-utils are installed.
sed -i 's/appstream-util//'        data/meson.build
sed -i 's/desktop-file-validate//' data/meson.build

meson build \
    --prefix=/usr \
    --sysconfdir=/etc \
    --buildtype=release \
    -Dsynctex=disabled
 
DESTDIR="$1" ninja -C build install

install -Dm 0644 zathura.1   "$1/usr/share/man/man1/zathura.1"
install -Dm 0644 zathurarc.5 "$1/usr/share/man/man1/zathurarc.5"