desktop/debianutils/PKGBUILD
2016-02-26 14:07:40 +01:00

36 lines
1.1 KiB
Bash

pkgname=debianutils
pkgver=4.7
pkgrel=1
pkgdesc="Utility programs from Debian."
url="http://packages.debian.org/source/sid/debianutils"
arch=('x86_64')
license=('GPL')
depends=('glibc')
categories=('utils')
source=("http://ftp.de.debian.org/debian/pool/main/d/debianutils/debianutils_${pkgver}.tar.xz")
sha256sums=('a269cacd40f52f2fa5d5636357714a49e8538459c16d77772efaa23711fe53d9')
build() {
cd "${srcdir}/${pkgname}-$pkgver"
./configure --prefix=/usr
make
}
package() {
cd "${srcdir}/${pkgname}-$pkgver"
make DESTDIR="${pkgdir}" install
msg "Removing files already provided by the \"which\" package..."
rm "${pkgdir}/usr/bin/which"
find "${pkgdir}/usr/share/man" -name 'which.1' -delete
msg "Removing files already provided by the \"run-parts\" package..."
rm "${pkgdir}/usr/bin/run-parts"
find "${pkgdir}/usr/share/man" -name 'run-parts.8' -delete
msg "Removing the \"installkernel\" utility, which is probably too Debian-specific to work here..."
rm "${pkgdir}/usr/sbin/installkernel"
find "${pkgdir}/usr/share/man" -name 'installkernel.8' -delete
}