summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 26a1018f00f2093f7ea4776d123ca6747c717d7c (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
# Maintainer: haha662 <haha662 at outlook dot com>

pkgname=arch-texdoc-git
pkgver=r3.5fe70bf
pkgrel=1
pkgdesc="Drop-in replacement of texdoc for Arch Linux using online documents"
arch=("any")
url="https://github.com/haha662/arch-texdoc"
license=("MIT")
depends=("python" "xdg-utils")
makedepends=("git")
source=("$pkgname::git+https://github.com/haha662/arch-texdoc.git")
sha256sums=("SKIP")

pkgver() {
  cd "$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "${pkgname}"

  install -Dm755 arch-texdoc.py "${pkgdir}/usr/bin/arch-texdoc"
}