aboutsummaryrefslogtreecommitdiffstats
path: root/main/acct/APKBUILD
blob: c5f6e7510e0aba2732a1371d92535cb19194e1f6 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=acct
pkgver=6.6.3
pkgrel=0
pkgdesc="The GNU Accounting Utilities"
url="http://www.gnu.org/software/acct/"
arch="all"
license="GPL3+"
depends=""
makedepends="linux-headers"
install=""
subpackages="$pkgname-doc"
source="http://ftp.gnu.org/gnu/acct/$pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	default_prepare
	sed -i -e '/gets is a/d' \
		"$builddir"/lib/stdio.in.h
}

build() {
	cd "$builddir"
	# seems like this makefile does not respect DESTDIR
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir="$pkgdir"/usr/share/man \
		--infodir="$pkgdir"/usr/share/info \
		--enable-linux-multiformat
	make LDADD="-lm lib/libgnu.la"
}

package() {
	cd "$builddir"
	make prefix="$pkgdir/usr" install
}

sha512sums="161a0c19af9cfb88689935dca0d64c94922bcf9135063349ef8c4d2bf7702864ade1b75ebab2b4fe182a7a9011b755e8608d253a30a263038bc8d57a22a92bc2  acct-6.6.3.tar.gz"