blob: 09cf787bb425e105d189666a26d517a602d0f1fb (
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
51
52
|
# Maintainer: Incomplete <incomplete@aixon.co>
pkgname=doc-browser-git
pkgdesc="An API documentation browser with support for DevDocs and Hoogle"
# pkgver will be updated with pkgver()
pkgver=NA
pkgrel=6
license=('MPL-2.0')
url="https://github.com/qwfy/doc-browser"
arch=('x86_64')
# An array of packages this package depends on to run
depends=('qt5-base'
'qt5-quickcontrols'
'qt5-webengine'
'pcre'
'xz'
'zlib'
'openssl'
'mathjax'
'xclip'
'xdg-utils')
# An array of packages this package depends on to build but are not needed at runtime
makedepends=('stack'
'alex'
'happy'
'c2hs')
source=("${pkgname}::git+${url}.git")
md5sums=('SKIP')
pkgver() {
cd "${pkgname}"
git rev-parse master
}
build() {
cd "${pkgname}"
stack build
}
package() {
cd "${pkgname}"
install -D -m755 "$(stack path --local-install-root)/bin/doc-browser" "${pkgdir}/usr/bin/doc-browser"
install -D -m644 doc-browser.bash-completion "${pkgdir}/etc/bash_completion.d/doc-browser.bash"
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/doc-browser/LICENSE"
install -D -m644 doc-browser.desktop "${pkgdir}/usr/share/applications/doc-browser.desktop"
install -D -m644 icon.svg "${pkgdir}/usr/share/icons/doc-browser.svg"
}
|