aboutsummaryrefslogtreecommitdiffstats
path: root/main/texinfo/APKBUILD
blob: c5059a89a057e9892a81a997a958416ebb045132 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=texinfo
pkgver=6.1
pkgrel=0
pkgdesc="Utilities to work with and produce manuals, ASCII text, and on-line documentation from a single source file"
url="http://www.gnu.org/software/texinfo/"
arch="all"
license='GPL3+'
depends="perl"
makedepends="ncurses-dev perl"
subpackages="$pkgname-doc"
source="ftp://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.xz"

_builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
	make || return 1
}

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

	rm -f ${pkgdir}/usr/share/info/dir
	gzip ${pkgdir}/usr/share/info/*

	rm -rf "$pkgdir"/usr/lib/charset.alias
	rmdir -p "$pkgdir"/usr/lib 2>/dev/null
	return 0
}

md5sums="1d7ec1888fae00730693597852b00cde  texinfo-6.1.tar.xz"
sha256sums="ac68394ce21b2420ba7ed7cec65d84aacf308cc88e9bf4716fcfff88286883d2  texinfo-6.1.tar.xz"
sha512sums="ae47295f3bcfb728c3be59421cf830ecfa5fc7856a086e45da2bac89600d883aa4406a6ef62d7ee5dc2bab83a3efa1cec861a3b4b14b85bbecb53ebf3ebf7235  texinfo-6.1.tar.xz"