summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 50df88a12f6d4826a41e1aa93fa8157ab4772cf6 (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: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=help2man-git
pkgver=1.49.3.r0.g0503f54
pkgrel=1
pkgdesc="Tool for generating manual pages from program output"
arch=('i686' 'x86_64')
url="https://www.gnu.org/software/help2man/"
license=('GPL')
depends=('perl-locale-gettext')
makedepends=('git' 'gettext' 'po4a')
provides=("help2man=$pkgver")
conflicts=('help2man')
source=("git+https://salsa.debian.org/bod/help2man.git")
sha256sums=('SKIP')


pkgver() {
  cd "help2man"

  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "help2man"

  automake -a || true
  autoreconf -fi
  ./configure \
    --prefix="/usr"
  make
}

package() {
  cd "help2man"

  make DESTDIR="$pkgdir" install
}