blob: 53993242d2a318c9cf447e12c15d4f3693f949ab (
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
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=acct
pkgver=6.6.2
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() {
cd "$_builddir"
#update_config_sub || return 1
# fix eglibc-2.16+ build issue
sed -i -e '/gets is a/d' \
lib/stdio.in.h || return 1
}
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 \
|| return 1
make LDADD="-lm lib/libgnu.la" || return 1
}
package() {
cd "$_builddir"
make prefix="$pkgdir/usr" install || return 1
}
md5sums="ecb1d38541b01c3434b8bea5fe02e44a acct-6.6.2.tar.gz"
sha256sums="8ed47b2f893b08f0d67720880adbb48b835a826c314fa52fd52af1cee6870101 acct-6.6.2.tar.gz"
sha512sums="5942aa3d1faebb29bd6d6ff97c2ba8525dc5a9c85522c3f549ce0772042d3736e19126ddd7e10fe0681a6ac496b8d3aafda0894577a3b64c59f3b78fc222d2b3 acct-6.6.2.tar.gz"
|