summaryrefslogtreecommitdiffstats
path: root/main/acct/APKBUILD
blob: b5b5574f154dc62041ba1e26d3290ea65c86417a (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=acct
pkgver=6.5.3
pkgrel=2
pkgdesc="The GNU Accounting Utilities"
url="http://www.gnu.org/software/acct/"
arch="all"
license="GPL"
depends=
makedepends=
install=
subpackages="$pkgname-doc"
source="http://ftp.gnu.org/gnu/acct/${pkgname}-${pkgver}.tar.gz"

build() {
	cd "$srcdir/$pkgname-$pkgver"

	# seems like this makefile does not respect DESTDIR
	./configure --prefix=/usr \
		--mandir="$pkgdir"/usr/share/man \
		--infodir="$pkgdir"/usr/share/info \
		--enable-linux-multiformat

	make LDADD="-lm lib/libgnu.la"	|| return 1
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	make prefix="$pkgdir/usr" install
}

md5sums="0d4121b4ca76792b17d76042577c04ce  acct-6.5.3.tar.gz"