aboutsummaryrefslogtreecommitdiffstats
path: root/community/moreutils/APKBUILD
blob: 27189a0b18e290c8b9ee9d4ef202b9c45db98fc1 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=moreutils
pkgver=0.65
pkgrel=0
pkgdesc="A growing collection of the unix tools that nobody thought to write thirty years ago"
url="https://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="https://git.joeyh.name/index.cgi/moreutils.git/snapshot/moreutils-$pkgver.tar.gz
	docbook-xsl.patch"

build() {
	_docbookpath="$(echo /usr/share/xml/docbook/xsl-stylesheets-*)"
	if [ -z "$_docbookpath" ]; then
		error "Couldn't get $_docbookpath, you need docbook-xsl installed"
	fi
	make DOCBOOKXSL=$_docbookpath
}

check() {
	make check
}

package() {
	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="dcad2a3b6d9621da6d2f860f39acb04c80d42cc2123e12a6ec84524f6a1fc7f5ae4bd5d00e698fe14d4c5e7d491d790970ce4370c9abd1f63318d1c512f596b9  moreutils-0.65.tar.gz
4e55b2f45443c71dcf3ff99f233119b997e52d4979985ff5269c07d98bb6ddcee74658a6006165d50757beb0054a2a2cc91d46ad60b943fbd0310b318e72de99  docbook-xsl.patch"