blob: fab620d6b2180b86f90e9b0929f5afa4badc7e97 (
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
49
50
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer:
pkgname=moreutils
pkgver=0.57
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="docbook-xsl docbook-xml perl-xml-sax libxslt-dev linux-headers"
makedepends="$depends_dev"
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
sed -i 's|schema/dtd/4.4|xml-dtd-4.5|g' *.docbook
}
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="2fd82a15dea059506a6f43ce717dbfad moreutils_0.57.orig.tar.gz
68e572a714bc5412dbe42d57d7618134 docbook-xsl.patch"
sha256sums="3a7d54b0634e5eda8c3c43490d47cea189156700892dea6d876867cef9bc0d1d moreutils_0.57.orig.tar.gz
73460164df90f4d842a9d9f4f3a1eb845239f0817c651676779af275e3cdab3a docbook-xsl.patch"
sha512sums="2451ed5218841866b117349e451460fce1e7b84485588b48c1f4bfaa18c311a12c9cc6700aff16911aba2d06467e539ea15a705ea3cf0d397b296c4c5f7047c1 moreutils_0.57.orig.tar.gz
8c8103ab871b7c4c94bba79d485152837c696de57c35f2d3a3fda042eb85d7b1a7ab1ca7e323012d06f9753af96d2a74e9432ab99bb697695fa145dea1c40dff docbook-xsl.patch"
|