summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7efabf59ebdda14908f2c2636250a2eeac93dd9b (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: Marcel Kr├╝ger <zauguin at gmail dot com>
pkgname=stdman-git
pkgver=2018.03.11.r0.439fd390
pkgrel=1
pkgdesc="Formatted C++11/14 stdlib man pages (cppreference)"
arch=(any)
url="https://github.com/jeaye/stdman"
license=('MIT')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname%-git}::git+https://github.com/jeaye/stdman.git")
md5sums=('SKIP')

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

build() {
	cd "$srcdir/${pkgname%-git}"
	./configure --datarootdir="/usr/local"
}

package() {
	cd "$srcdir/${pkgname%-git}"
	make DESTDIR="$pkgdir/" install
  install -d "$pkgdir/usr/share/licenses/stdman-git/"
  install LICENSE "$pkgdir/usr/share/licenses/stdman-git/LICENSE"
}