summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4045e72ac41ce043cc702e6863fad4ee38f3a8e2 (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
# Maintainer: Nicola Revelant <nicolarevelant@outlook.com>

pkgname=pinfo-git
pkgver=0.6.13.r37.g47a01b5
pkgrel=2
pkgdesc="A hypertext info file viewer"
arch=('x86_64')
url="https://github.com/nicolarevelant/pinfo"
license=('GPL-2.0-only')
makedepends=('git' 'meson')
depends=('ncurses' 'readline')
conflicts=('pinfo')
source=("$pkgname"::"git+$url.git")
sha256sums=('SKIP')

pkgver() {
	cd "$pkgname"
	git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "$pkgname"
	arch-meson build
	meson compile -C build
}

package() {
	cd "$pkgname"
	DESTDIR="$pkgdir" meson install -C build
}