aboutsummaryrefslogtreecommitdiffstats
path: root/community/dateutils/APKBUILD
blob: fa18a29a23532ef1374d205295a254e28197db68 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=dateutils
pkgver=0.4.2
pkgrel=0
pkgdesc="Utilities for fast date-time calculations and conversion"
url="http://hroptatyr.github.com/dateutils/"
arch="all"
license="BSD"
makedepends="m4 texinfo automake autoconf linux-headers"
subpackages="$pkgname-doc"
source="https://bitbucket.org/hroptatyr/$pkgname/downloads/$pkgname-${pkgver}.tar.xz
	remove-sysctl-include.patch"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure \
		--prefix=/usr \
		--enable-static=no
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	install -dm755 "$pkgdir/usr/share/licenses/$pkgname"
	sed -n '/* Copyright/,/ DAMAGE.$/p' src/dadd.c > "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

sha512sums="0b6e98bd9402dc3629122c3d68ab54df547ce779806661cc01df3625ab7cedb429d943ef46e151653283c1ac6c557f4bf14b3b5adaafbcac1d0a86c6d12895fd  dateutils-0.4.2.tar.xz
a31647222867996e23fa8066d13cfe19a4aac7d9ec86b0f998665ba60883454a1843edabd9f49af4a313a582b33cb043b8dead66cbdb4b72bd4918fac435543d  remove-sysctl-include.patch"