aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dateutils
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-01-29 13:51:29 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-01-29 13:51:40 +0000
commit2203138ac3180e251668e17d8725b4f75bf87527 (patch)
tree71d494687829ec6026ed175b86f6310bcbf0034e /testing/dateutils
parent1e759539e6fddbfe9908f4c631de121d9c939e51 (diff)
downloadaports-2203138ac3180e251668e17d8725b4f75bf87527.tar.bz2
aports-2203138ac3180e251668e17d8725b4f75bf87527.tar.xz
testing/dateutils: new aport
Diffstat (limited to 'testing/dateutils')
-rw-r--r--testing/dateutils/APKBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/dateutils/APKBUILD b/testing/dateutils/APKBUILD
new file mode 100644
index 0000000000..fb874d11cf
--- /dev/null
+++ b/testing/dateutils/APKBUILD
@@ -0,0 +1,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"