# Maintainer: Natanael Copa pkgname=partclone pkgver=0.2.24 pkgrel=0 pkgdesc="Partition cloning tool" url="http://partclone.org/" arch="all" license="GPL" depends= makedepends="e2fsprogs-dev ncurses-dev" install="" subpackages="$pkgname-doc" source="http://downloads.sourceforge.net/project/partclone/testing/src/partclone-$pkgver.tar.gz memtrace.patch" # TODO: # libreiserfs: http://reiserfs.linux.kiev.ua # ntfsprogs: http://download.sf.net/linux-ntfs/%{name}-%{version}.tar.bz2 # _builddir="$srcdir"/partclone-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" # --enable-all enable all supported file system # --enable-extfs enable ext2/3/4 file system # --enable-xfs enable XFS file system # --enable-reiserfs enable REISERFS 3.6/3.6 file system # --enable-reiser4 enable Reiser4 file system # --enable-hfsp enable HFS plus file system # --enable-fat enable FAT file system # --enable-ntfs enable NTFS file system # --enable-ufs enable UFS(1/2) file system # --enable-vmfs enable vmfs file system # --enable-jfs enable jfs file system # --enable-btrfs enable btrfs file system ## --enable-xfs \ ac_cv_lib_rt_aio_init=yes ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --enable-extfs \ --enable-fat \ --enable-ncursesw \ --disable-nls \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 } md5sums="d2856820ed3f92e064fcbda3cd20f94e partclone-0.2.24.tar.gz 83dfb01e5d68795266726826a49a2de8 memtrace.patch"