desktop/debianutils/PKGBUILD

35 lines
1.1 KiB
Bash
Raw Normal View History

pkgname=debianutils
2016-11-30 18:00:15 +08:00
pkgver=4.8.1
pkgrel=1
pkgdesc="Utility programs from Debian."
url="http://packages.debian.org/source/sid/debianutils"
2013-02-17 07:41:50 +08:00
arch=('x86_64')
license=('GPL')
depends=('glibc')
categories=('utils')
2015-05-02 17:51:41 +08:00
source=("http://ftp.de.debian.org/debian/pool/main/d/debianutils/debianutils_${pkgver}.tar.xz")
2016-11-30 18:00:15 +08:00
sha256sums=('2c395c0bdcfe89de30828b1d25cc5549ded5225a6d3625fbcb2cc0881ef5f026')
build() {
2016-02-26 21:07:40 +08:00
cd "${srcdir}/${pkgname}-$pkgver"
./configure --prefix=/usr
make
}
package() {
2016-02-26 21:07:40 +08:00
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
}