blob: 8a2a417c2cd70981034d8099e1087d70e5f6217c (
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
|
# Maintainer: RiverOnVenus <error@zhui.dev>
# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Wei-Ning Huang <aitjcize@gmail.com>
pkgname=cppman-git
pkgver=0.5.6.r5.ga3f3846
pkgrel=1
pkgdesc="C++ 98/11/14/17/20 manual pages for Linux, with source from cplusplus.com and cppreference.com."
arch=('any')
url='https://github.com/aitjcize/cppman'
license=('GPL3')
depends=('bash' 'python' 'python-beautifulsoup4' 'python-html5lib')
optdepends=(
"vim: for using vim as a pager"
"neovim: for using nvim as a pager"
"perl: for bash/zsh completion"
)
makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel')
provides=('cppman')
conflicts=('cppman')
source=("$pkgname"::"git+${url}")
sha256sums=('SKIP')
pkgver() {
cd $pkgname
git describe --long --tags --abbrev=7 | sed 's/-/.r/;s/-/./'
}
prepare(){
cd $pkgname
git clean -dfx
}
build() {
cd $pkgname
python -m build --wheel --no-isolation
}
package() {
cd $pkgname
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 "$srcdir/$pkgname/COPYING" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|