blob: fb874d11cfdc7e0727653961476af9f436ad57c7 (
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
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=dateutils
pkgver=0.3.5
pkgrel=0
pkgdesc="Utilities for fast date-time calculations and conversion"
url="http://hroptatyr.github.com/dateutils/"
arch="all"
license="BSD"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="https://bitbucket.org/hroptatyr/$pkgname/downloads/$pkgname-${pkgver}.tar.xz"
_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
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="59e47ffe041be6beb2cd8950198e4fa2 dateutils-0.3.5.tar.xz"
sha256sums="cff341d3e6394627d98cb9643b9ca1235b839037ede58983c927df4f27ee31a7 dateutils-0.3.5.tar.xz"
sha512sums="e0d732ce42551906da0c6635ac9e17aa4b12cb199e63f32355a33ded36afa2a37e05853c23716982daf6078be8b8dafb0d7c49a228876cbbafc4541c037e067a dateutils-0.3.5.tar.xz"
|