summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8c539262bece5ae67cbbbf46760a94761f97f54a (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: Conrad Hoffmann <ch@bitfehler.net>

pkgname=digitd
pkgver=r12.e06aa4a
pkgrel=1
pkgdesc='Finger client & server'
arch=('any')
url='https://git.sr.ht/~sircmpwn/digitd'
license=('GPL-3.0-or-later')
depends=('hare-ev')
makedepends=('git' 'scdoc')
_commit='e06aa4a69eba4430689a33a3777c43665b1d931c'
source=("$pkgname::git+$url#commit=$_commit")
b2sums=('SKIP')


pkgver() {
  cd "$pkgname"

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

build() {
  cd "$pkgname"

  # remove '-Wl,' prefix if present, since it is only required when
  # the linker is invoked indirectly. Keeping it will cause the linker to
  # fail.
  export LDFLAGS=${LDFLAGS#"-Wl,"}

  make all docs
}

package() {
  cd "$pkgname"

  make DESTDIR="$pkgdir" PREFIX=/usr install
}