blob: 9569a91377f7a00267978081647ae046e4ab85e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Maintainer: Pantelis Panayiotou <p.panayiotou@gmail.com>
pkgname="qman"
pkgver="1.4.1"
pkgrel="2"
epoch="1"
pkgdesc="A more modern manual page viewer for our terminals"
arch=("x86_64" "aarch64")
url="https://github.com/plp13/qman"
license=("BSD-2-Clause")
depends=("ncurses" "zlib" "bzip2" "xz" "man-db")
makedepends=("git" "meson" "python-cogapp")
checkdepends=("cunit")
provides=("qman")
conflicts=("qman-git")
replaces=("qman-git")
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/plp13/qman/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=("644f9cfc19adcb3e630eb7dc86b1928f1a162d7a2171e91c2465751486796671")
prepare() {
cd "${pkgname}-${pkgver}"
sed -i "s/install_dir\: 'man\/man1'/install_dir: 'share\/man\/man1'/g" "man/meson.build"
}
build() {
opts=(
"-Dconfigdir=/etc/xdg/qman"
"-Ddocdir=share/doc/qman"
"-Dman-pages=enabled"
"-Ddocs=enabled"
"-Dconfig=enabled"
"-Dgzip=enabled"
"-Dbzip2=enabled"
"-Dlzma=enabled"
"-Dtests=disabled"
)
arch-meson build "${pkgname}-${pkgver}" "${opts[@]}"
meson compile -C build
}
check() {
arch-meson build "${pkgname}-${pkgver}" --reconfigure -Dtests=enabled
meson test -C build
}
package() {
meson install --destdir "${pkgdir}" -C build
cd "${pkgname}-${pkgver}"
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|