summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1ad32e4351a6dbfee31ae8cbc0a8f514e8f1dc05 (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
## Maintainer: Cain Atkinson <yellowsink@protonmail.com>

pkgname=docfx
pkgver=2.60.2
pkgrel=1
pkgdesc="Tools for building and publishing API documentation for .NET projects"
arch=('x86_64')
url="https://dotnet.github.io/docfx/"
license=('MIT')
groups=()
depends=()
makedepends=(unzip)
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=(!strip)
install=
changelog=
source=("docfx.zip::https://github.com/dotnet/docfx/releases/download/v$pkgver/docfx-linux-x64-v$pkgver.zip")
noextract=("docfx.zip")
sha256sums=("fba53cc4a2322d88ce06ca2d7eb40a5f7bb25b4cf8efd6c8a2c47a6b22ddb2b8")

package() {
	# make dirs
	install -d "${pkgdir}"/opt/docfx
	install -d "${pkgdir}"/usr/bin

	# unzip
	unzip -qq docfx.zip -d docfx
	chmod 755 docfx docfx/docfx
	cp -a docfx/* "${pkgdir}"/opt/docfx/

	# bin
	ln -s "${pkgdir}"/opt/docfx/docfx "${pkgdir}"/usr/bin/docfx
}