Files
extra/moreutils/PKGBUILD
2025-06-22 20:39:04 -05:00

30 lines
1.2 KiB
Bash

# Maintainer: Jesus E. <heckyel@riseup.net>
pkgname=moreutils
pkgver=0.65
pkgrel=1
pkgdesc="A growing collection of the unix tools that nobody thought to write thirty years ago"
arch=('i686' 'x86_64')
url='https://joeyh.name/code/moreutils/'
license=('GPL-2')
depends=('perl' 'perl-ipc-run' 'perl-timedate' 'perl-time-duration')
makedepends=('docbook2x' 'docbook-xml' 'perl-xml-sax')
options=('!emptydirs' 'zipman')
source=("${pkgname}-${pkgver}.tar.gz::https://deb.debian.org/debian/pool/main/m/moreutils/moreutils_${pkgver}.orig.tar.xz")
sha512sums=('0a0b0d828671c45b9e62c045fac19ad2660b2469d0b7a4e203bd2567b0ec89e54d82d9a93a759fa4f8550eb72912fd12ef351bd5ea584b0a4c8f1c9cbc02ee9d')
build() {
cd $pkgname-$pkgver
make DOCBOOK2XMAN=db2x_docbook2man
}
package() {
cd $pkgname-$pkgver
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
install -Dm644 COPYING -t "$pkgdir/usr/share/licenses/$pkgname"
}