blob: fb14207a3ab8a7d6a8b8ced2ca1c29613be7a65f (
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.1
pkgrel=0
pkgdesc="The GNU Accounting Utilities"
url="http://www.gnu.org/software/acct/"
arch="all"
license="GPL3+"
depends=""
makedepends=""
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="31a7a2ea81da1fddbc92b9c62cdea1c5 acct-6.6.1.tar.gz"
sha256sums="554515611ef9299012b7510050868a48fc178ce1544947123ab46ec50230ffcb acct-6.6.1.tar.gz"
sha512sums="4bc3d6b41aeafcf8acfdd020057f1b6f15eea3589981387bca7e57aa8fe71d058e8def97f139dd2c11a1ac39f2d8b95bd103d31caff042cf716dd961b9588f5d acct-6.6.1.tar.gz"
|