diff options
author | Simon Frankenberger <simon@fraho.eu> | 2019-02-06 21:44:05 +0100 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-12-26 14:21:38 +0100 |
commit | c7c7b0d49f863676ebca50afac0bb963aa24075c (patch) | |
tree | e9faf7b0ac2f6914ef19ac650ab6fd1138f7bc0e /main/datefudge | |
parent | 4e6f1904e1577829bdd5d83a43b197ff7944e3bd (diff) | |
download | aports-c7c7b0d49f863676ebca50afac0bb963aa24075c.tar.bz2 aports-c7c7b0d49f863676ebca50afac0bb963aa24075c.tar.xz |
main/gnutls: Enable tests again
Diffstat (limited to 'main/datefudge')
-rw-r--r-- | main/datefudge/APKBUILD | 36 | ||||
-rw-r--r-- | main/datefudge/musl.patch | 11 |
2 files changed, 47 insertions, 0 deletions
diff --git a/main/datefudge/APKBUILD b/main/datefudge/APKBUILD new file mode 100644 index 0000000000..6923285c33 --- /dev/null +++ b/main/datefudge/APKBUILD @@ -0,0 +1,36 @@ +# Contributor: Simon Frankenberger <simon-alpine@fraho.eu> +# Maintainer: Simon Frankenberger <simon-alpine@fraho.eu> +pkgname=datefudge +pkgver=1.22 +pkgrel=0 +pkgdesc="Tool to fake the system date" +url="https://packages.debian.org/sid/datefudge" +arch="all" +license="GPL-2.0" +depends="coreutils" +checkdepends="perl" +subpackages="$pkgname-doc" +source="http://deb.debian.org/debian/pool/main/d/datefudge/datefudge_${pkgver}.tar.xz +musl.patch" +builddir="$srcdir/$pkgname-$pkgver" + +build() { + cd "$builddir" + + # fix Makefile, set the version number directly as dpkg-parsechangelog is not available + sed -i "s/^VERSION := .\+/VERSION := ${pkgver}/" Makefile + make all +} + +check() { + cd "$builddir" + make test +} + +package() { + make -j1 DESTDIR="$pkgdir" \ + -C "$builddir" install +} + +sha512sums="ed67d334ca8296ae1c7b5ee1efc6ec7aafaad0aeb9f0f0387245c2eeea94ccc59ab804778b93ab8b34a512b83a3ec81d10f341d4f4f22b4a07fccdadaefb6d8b datefudge_1.22.tar.xz +e8b004957276f1162f9d686f03593cdd64455a35764e34aeac72d419b6ac071fb044405c73999283fcb9abff312225f81039553801cfaa1165bbbfc80705d44b musl.patch" diff --git a/main/datefudge/musl.patch b/main/datefudge/musl.patch new file mode 100644 index 0000000000..95b8d07540 --- /dev/null +++ b/main/datefudge/musl.patch @@ -0,0 +1,11 @@ +--- old/datefudge.c ++++ new/datefudge.c +@@ -78,7 +78,7 @@ + return 0; + } + +-int gettimeofday(struct timeval *x, struct timezone *y) { ++int gettimeofday(struct timeval *__restrict x, void *__restrict y) { + return __gettimeofday(x,y); + } + |