updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / dcc / PKGBUILD
blobc0aa9ee559c413a8a6e7754582813f3db39755d7
1 # Contributor: Nathan Owe <ndowens.aur at gmail dot com>
2 pkgname=dcc
3 pkgver=1.3.134
4 pkgrel=2
5 pkgdesc="Distributed Checksum Clearinghouse spam tool"
6 url="http://www.rhyolite.com/anti-spam/dcc/"
7 arch=('i686' 'x86_64')
8 license="custom"
9 depends=('sh')
10 source=(http://www.rhyolite.com/anti-spam/dcc/source/old/$pkgname-$pkgver.tar.Z \
11         http://www.rhyolite.com/dcc/LICENSE)
12 md5sums=('cbc80dcb61fa22dd9cad7fc5edfbfc9d'
13          'b88af7cf9c6a5c7ec47e8df22d2ffe69')
16 build() {
17   cd $srcdir/$pkgname-$pkgver
18   ./configure --with-installroot=${pkgdir} \
19   --mandir=/usr/share/man --homedir=/opt/dcc \
20   --bindir=/usr/bin --libexecdir=/usr/lib/dcc
21   make
24 package() {
25   cd $srcdir/$pkgname-$pkgver
26   make DESTDIR=${pkgdir}/ install
27   install -d $pkgdir/usr/share/licenses/$pkgname
28   install -Dm644 $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
29   
30   #Fix file permissions
31   find $pkgdir/ -group bin -exec chgrp root {} \;
32   find $pkgdir/ -user bin -exec chown root {} \;
33   find $pkgdir/opt/dcc -type f -exec chmod 644 {} \;
34   chmod 755 $pkgdir/opt/dcc/log 
35