summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0ecfc38e1d4b0b2933b5477f4e3e5d53bdc83c65 (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
# Maintainer : kdx <kikoodx@paranoici.org>

_pkgname=doq
pkgname="$_pkgname-git"
pkgver=r2.dd4a155
pkgrel=1
pkgdesc='Small tool for creating single-file html documents.'
arch=(x86_64)
url="https://github.com/rxi/$_pkgname"
license=('MIT')
conflicts=("$_pkgname")
provides=("$_pkgname")
makedepends=('git')
sha256sums=('SKIP')
source=("$_pkgname::git+$url")

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

build() {
  cd "$_pkgname"
  ./build.sh
}

package() {
  cd "$_pkgname"
  install -Dm711 doq "$pkgdir/usr/bin/doq"
  install -Dm644 readme.md "$pkgdir/usr/share/licenses/$pkgname/readme.md"
}