aboutsummaryrefslogtreecommitdiffstats
path: root/main/indent/APKBUILD
blob: 0ce51e787dc312c209bc48bd34acb1760ee81288 (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=indent
pkgver=2.2.11
pkgrel=1
pkgdesc="An indenting utility"
url="http://www.gnu.org/software/indent/"
arch="all"
license="GPL3+ BSD"
depends=""
makedepends="gettext-dev"
install=""
subpackages="$pkgname-doc $pkgname-lang"
source="http://dev.alpinelinux.org/archive/indent/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	update_config_sub || return 1
	# apply patches here
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--without-included-gettext \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--without-texinfo \
		|| return 1
	make SUBDIRS="intl po src" || return 1
}

package() {
	cd "$_builddir"
	make SUBDIRS="intl po src man" DESTDIR="$pkgdir" install || return 1
	rm -rf "$pkgdir"/usr/lib/charset.alias
	rmdir -p "$pkgdir"/usr/lib 2>/dev/null
	return 0
}

md5sums="98beafca62472805a3739d3867d5d70f  indent-2.2.11.tar.gz"
sha256sums="aaff60ce4d255efb985f0eb78cca4d1ad766c6e051666073050656b6753a0893  indent-2.2.11.tar.gz"
sha512sums="f5670e5edc76b9d599ef9e8cc498e13ac15e10eb6a8d674e1612918c4b67ffb15c94d73b9590434e0cdea6ead4b8d1f5bcda1c2f3838acbdeb4d732a0bea89be  indent-2.2.11.tar.gz"