aboutsummaryrefslogtreecommitdiffstats
path: root/main/help2man/APKBUILD
blob: aa1680f96528920b8f81b0098e3fcd8b4cd4a7ba (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
39
40
41
42
43
44
45
46
47
48
49
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer:
pkgname=help2man
pkgver=1.47.2
pkgrel=0
pkgdesc="Create simple man pages from --help output"
url="http://www.gnu.org/software/help2man"
arch="noarch"
license="GPLv3+"
depends="perl"
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="ftp://ftp.gnu.org/gnu/help2man/help2man-$pkgver.tar.xz"

_builddir="$srcdir"/help2man-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="5a171e903765da7d34b1810bbd69fec6  help2man-1.47.2.tar.xz"
sha256sums="c4c5606773e51039a06b7328ed4934913df142747a9a185d2a6ab9300d7f3f7c  help2man-1.47.2.tar.xz"
sha512sums="3429e8f2eff78c8ab8d93533411b68aa8c1f730e56a261de82908069d6ce1af15443f8cc618d1b6f1d8fdc9a06631c9550520f7f43b984f91f2a1778d1c1402e  help2man-1.47.2.tar.xz"