summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ed69b44f9852b7bbd0878863c49a9a78f5f971f8 (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
# Maintainer: KirottuM <kirottualt@gmail.com>

pkgname=arch-wiki-dmenu-git
_pkgname=arch-wiki-dmenu
pkgver=r1.9e43f41
pkgrel=1
pkgdesc="Search ArchWiki offline docs with dmenu"
url="https://github.com/Kirottu/arch-wiki-dmenu"
license=('GPL')
arch=('i686' 'x86_64')
makedepends=('git')
provides=("$_pkgname")
depends=('arch-wiki-docs')
optdepends=('xdg-utils' 'fuzzel' 'dmenu' 'rofi' 'surf-git')
conflicts=("$_pkgname")
source=("git+https://github.com/Kirottu/arch-wiki-dmenu")
sha256sums=('SKIP')

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

package() {
  install -D -Dm755 "$_pkgname"/arch-wiki-dmenu "$pkgdir"/usr/bin/arch-wiki-dmenu
}