updated on Fri Jan 20 12:03:34 UTC 2012
[aur-mirror.git] / mtree / PKGBUILD
blob8e5854e2ff1b21d7bef4636a92c524f555a604f3
1 pkgname="mtree"
2 pkgver="2010Q3"
3 pkgrel=2
4 pkgdesc="NetBSD mtree"
5 arch=('i686' 'x86_64')
6 url="http://www.netbsd.org/"
7 license=('BSD')
8 makedepends=('cvs' 'libnbcompat')
9 source=('fileflags.diff')
10 md5sums=('6959c69cff70ac5ee14ab96666b73902')
12 __cvsroot="anoncvs@anoncvs.NetBSD.org:/cvsroot"
13 __cvsmod="pkgsrc/pkgtools/$pkgname/files"
15 build() {
16         if [ -d $__cvsmod/CVS ]; then
17                 CVSROOT=$__cvsroot CVS_RSH=ssh cvs -f -z3 up -r pkgsrc-$pkgver -Pd $__cvsmod
18         else
19                 CVSROOT=$__cvsroot CVS_RSH=ssh cvs -f -z3 co -r pkgsrc-$pkgver -P $__cvsmod
20         fi
22         rm -rf build
23         cp -r $__cvsmod build
24         cd build
26         # http://old.nabble.com/pkg-40766%3A-sysutls-mtree-fails-to-build-on-Linux-(with-patch-)-tt22242834.html#a22242834
27         patch -p0 < $srcdir/fileflags.diff
29         ./configure --prefix=/usr
31         make LIBS=-lnbcompat
34 package() {
35         cd build
37         install -Dm755 $pkgname $pkgdir/usr/sbin/$pkgname
38         install -Dm644 $pkgname.8 $pkgdir/usr/share/man/man8/$pkgname.8