blob: 6084de137a497a1a684ee376d214c24439753477 (
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
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=dateutils
pkgver=0.4.0
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="ede001efb7806153e9825a5cf3cf4de8 dateutils-0.4.0.tar.xz"
sha256sums="d05af02bc60a82bdc21c0ac4779f1040f631b0a1233ed15c4f69a80d3dad23da dateutils-0.4.0.tar.xz"
sha512sums="06aeed8cc2e8bd22584d74fccd6a9739fbed191a01d5dfb5bab48d5b059dce01d48f8b5f4b6e927e26c1ac2143d7aeed1f20f0415d1275d172f2584ef9d776a9 dateutils-0.4.0.tar.xz"
|