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

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

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
}

md5sums="61262ed30187767b4c0130069816f777  dateutils-0.4.1.tar.xz"
sha256sums="6ccce48975fc4d3af2e27c7893e181c46ab5df1cb37e4a428b4b521a77d55278  dateutils-0.4.1.tar.xz"
sha512sums="c13461de6dad483b0014692a2319a7bf9ed1677415b8ee168131b397086f75725eb8b4e833d8b4a22f4aa726d6aca74be2597c2e07ef75a036cfea9bf67ccf1b  dateutils-0.4.1.tar.xz"