aboutsummaryrefslogtreecommitdiffstats
path: root/main/datefudge/APKBUILD
blob: 6923285c3395ea8f212ced701a664de32643a8fe (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
# 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"