aboutsummaryrefslogtreecommitdiff
path: root/community/zathura/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-05-17 10:15:26 +0300
committerCem Keylan <cem@ckyln.com>2021-05-17 10:15:26 +0300
commitcfc79937b87c56e09fe4ec3ba77579ab6a406395 (patch)
tree93274d2cb643a5ebde2ca9c3ea60600feded2424 /community/zathura/build
parent6699b5376cb7e97b74c00b8c0f6b9196e26f52c5 (diff)
downloadrepository-cfc79937b87c56e09fe4ec3ba77579ab6a406395.tar.gz
zathura: add new package at 0.4.7
Diffstat (limited to 'community/zathura/build')
-rwxr-xr-xcommunity/zathura/build19
1 files changed, 19 insertions, 0 deletions
diff --git a/community/zathura/build b/community/zathura/build
new file mode 100755
index 00000000..86589ef0
--- /dev/null
+++ b/community/zathura/build
@@ -0,0 +1,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"