aboutsummaryrefslogtreecommitdiffstats
path: root/testing/moreutils/APKBUILD
blob: f15e79551706632e95e98929bf7ea28aa97024dc (plain) (blame)
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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=moreutils
pkgver=0.62
pkgrel=0
pkgdesc="A growing collection of the unix tools that nobody thought to write thirty years ago"
url="http://joeyh.name/code/moreutils/"
arch="all"
license="GPL-2.0-or-later"
depends="perl perl-timedate perl-ipc-run"
checkdepends="bash"
makedepends="perl-dev docbook-xsl docbook-xml perl-xml-sax libxslt-dev linux-headers"
subpackages="$pkgname-doc"
source="http://ftp.de.debian.org/debian/pool/main/m/moreutils/moreutils_$pkgver.orig.tar.xz
	docbook-xsl.patch"

build() {
	cd "$builddir"
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make PREFIX=$pkgdir/usr install
	chmod 0644 $pkgdir/usr/share/man/man1/*
	mv $pkgdir/usr/share/man/man1/ts.1 $pkgdir/usr/share/man/man1/ts.1moreutils
	mv $pkgdir/usr/share/man/man1/parallel.1 $pkgdir/usr/share/man/man1/parallel-moreutils.1
	mv $pkgdir/usr/bin/parallel $pkgdir/usr/bin/parallel-moreutils
}

sha512sums="4d1bd481695f3152d33fbb8a58ca923c70ad0a189df7272082adb8d2ccaf0349a3816b6e0f642b667faa36935e4098ed4d2b40dfd256f84b7d5c48e9ace0bdc2  moreutils_0.62.orig.tar.xz
38c0088c2c637ac1cc809c16b7a2fb386a67d88a7aca2aef458203de3599fe6258c80ab0b5edfbb534203d71510c4d37abe4ebe23427273a4ccecf305736c9e3  docbook-xsl.patch"