summaryrefslogtreecommitdiffstats
path: root/unmaintained/partclone/APKBUILD
blob: ec56ba81df94fe6161d7897cb858dcad9fef692e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Contributor: Leonardo Arena <rnarld@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=partclone
pkgver=0.2.38
pkgrel=1
pkgdesc="Partition cloning tool"
url="http://partclone.org/"
arch="all"
license="GPL2+"
depends=
makedepends="e2fsprogs-dev ncurses-dev ntfsprogs-dev"
install=""
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/project/partclone/stable/$pkgver/partclone_$pkgver.tar.gz
	memtrace.patch"

# TODO:
# libreiserfs: http://reiserfs.linux.kiev.ua
#
_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-ntfs \
		--enable-ncursesw \
		--disable-nls \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="8577ac06ad54a829435f272eecedfa14  partclone_0.2.38.tar.gz
83dfb01e5d68795266726826a49a2de8  memtrace.patch"