updated on Mon Jan 23 16:10:15 UTC 2012
[aur-mirror.git] / cpdup / PKGBUILD
blob3bbe6437599163d97b24f7c743dfb43f8901343e
1 # Contributor: Andreas W. Hauser <andy-aur@splashground.de>
2 pkgname=cpdup
3 pkgver=1.09
4 pkgrel=1
5 pkgdesc="DragonFly BSD tool to mirror filesystems retaining permissions, flags, ownership, and utimes"
6 url="http://apollo.backplane.com/FreeBSDPorts/"
7 license=('BSD')
8 arch=(i686 x86_64)
9 source=(http://apollo.backplane.com/FreeBSDPorts/cpdup-$pkgver.tar.gz)
11 build() {
12   cd $startdir/src/$pkgname
13   rm -f md5.c
14   # The Makefile is a BSD Makefile, so don't use it.
15   export CFLAGS="$CFLAGS -D__unused= -D_GNU_SOURCE -D__USE_FILE_OFFSET64 -DNOMD5 -DUSE_PTHREADS -pthread"
16   for f in fsmid.o  hclink.o hcproto.o misc.o; do
17     make -f /dev/null $f
18   done
19   export LDFLAGS="$LDFLAGS fsmid.o  hclink.o hcproto.o misc.o"
20   make -f /dev/null cpdup
21   mkdir -p  $startdir/pkg/usr/bin
22   install cpdup -m 755  $startdir/pkg/usr/bin/cpdup
23   mkdir -p  $startdir/pkg/usr/share/man/man1
24   install -m 644 cpdup.1  $startdir/pkg/usr/share/man/man1
26 md5sums=('39854050225ad0fc8cdeea60e8b81e74')