aboutsummaryrefslogtreecommitdiffstats
path: root/testing/moreutils/APKBUILD
blob: 751bde6433158d1c4a60992ae387e7c438a4c0a1 (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
45
46
47
48
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=moreutils
pkgver=0.58
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"
depends="perl perl-timedate perl-ipc-run"
depends_dev=""
makedepends="$depends_dev docbook-xsl docbook-xml perl-xml-sax libxslt-dev linux-headers"
install=""
subpackages="$pkgname-doc"
source="http://ftp.de.debian.org/debian/pool/main/m/moreutils/moreutils_$pkgver.orig.tar.gz
docbook-xsl.patch"

_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"
	make
}

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
}

md5sums="7dd0c1d06d723c1b402ff746be367623  moreutils_0.58.orig.tar.gz
f9bc7598ed6fc8f3395712ea94fd6144  docbook-xsl.patch"
sha256sums="9c4bba745518f1cc4d5594b1276793bd4f737fedb2e5b14beeab4b73f106c00a  moreutils_0.58.orig.tar.gz
effb1f92995871cc87d1405e84fb438ca2b7e8f58630cc692aa7b6442b0b22cd  docbook-xsl.patch"
sha512sums="4bbb250d34b33a295e35cb4c282843ecf608ce61b428f8aa145a39dd6433a7b5b22619fe078df48be8d7f54f11aabcbf3094dc0e1c7fcd80c136e4be63282c64  moreutils_0.58.orig.tar.gz
800217abc409e7304e39cef77a3d62eab921c924678ef5619e87a06d719af9bed85e3223dee305b42d28827201d4f970444c68a4eef6584ea22e39211a727942  docbook-xsl.patch"