desktop/pigz/PKGBUILD
2013-08-25 23:31:16 +02:00

30 lines
887 B
Bash

# Maintainer: george <rpubaddr0 {at} gmail [dot] com>
# Contributor: Frank Thieme <frank@fthieme.net>
# Contributor: Laszlo Papp <djszapi2@gmail.com>
pkgname=pigz
pkgver=2.3
pkgrel=1
pkgdesc='Parallel implementation of the gzip file compressor.'
arch=('i686' 'x86_64')
url='http://www.zlib.net/pigz/'
license=('GPL')
depends=('zlib')
source=("http://www.zlib.net/${pkgname}/${pkgname}-${pkgver}.tar.gz")
md5sums=('042e3322534f2c3d761736350cac303f')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
sed -i s/"CFLAGS=".*/"CFLAGS=${CFLAGS}"/g Makefile
sed -i 's/$(CC)\(.*\)$/$(CC)\1 -lm/g' Makefile
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
install -Dm755 pigz "${pkgdir}/usr/bin/pigz"
ln -s /usr/bin/pigz "${pkgdir}/usr/bin/unpigz"
install -Dm644 pigz.1 "${pkgdir}/usr/share/man/man1/pigz.1"
install -Dm644 pigz.pdf "${pkgdir}/usr/share/doc/pigz/pigz.pdf"
}