desktop/debianutils/PKGBUILD
2015-06-01 17:25:39 +00:00

36 lines
1.1 KiB
Bash

pkgname=debianutils
pkgver=4.5.1
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")
sha512sums=('4cdb030946e8063607f102f58d4a1225b0e2795c5e01aeec45740b0a6fa0754013a9ae1239d89a23f6e4bf67e4d67fd669e84ed14b58695aff93a93b6e961b58')
build() {
cd "${srcdir}/${pkgname}"
./configure --prefix=/usr
make
}
package() {
cd "${srcdir}/${pkgname}"
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
}