1 # Maintainer : Keshav P R <(the.ridikulus.rat) (aatt) (gemmaeiil) (ddoott) (ccoomm)>
2 # Contributor: Gen2ly <toddrpartridge@gmail.com>
3 # Contributor: Aaron Griffin <aaron@archlinux.org>
4 # Contributor: dorphell <dorphell@archlinux.org>
7 pkgname="${_pkgname}-git"
11 pkgdesc="A program for creating, destroying, resizing, checking and copying partitions"
12 arch=('i686' 'x86_64')
14 url="http://www.gnu.org/software/parted/parted.html"
16 makedepends=('git' 'rsync' 'gperf' 'bc' 'libtool')
17 checkdepends=('valgrind' 'perl-digest-crc')
18 depends=('device-mapper' 'util-linux' 'gettext' 'e2fsprogs' 'ncurses' 'readline')
19 optdepends=('reiserfsprogs: for reiserfs partitions')
21 conflicts=("${_pkgname}")
22 provides=("${_pkgname}")
28 install="${pkgname}.install"
30 _gitroot="git://git.savannah.gnu.org/parted.git"
31 _gitname="${_pkgname}"
38 msg "Connecting to GIT server...."
40 if [[ -d "${srcdir}/${_gitname}/" ]]; then
41 cd "${srcdir}/${_gitname}/"
45 git remote add origin "${_gitroot}"
48 git checkout "${_gitbranch}"
49 git merge "remotes/origin/${_gitbranch}"
50 msg "The local GIT repo has been updated."
52 git clone "${_gitroot}" "${_gitname}"
53 cd "${srcdir}/${_gitname}/"
54 git checkout "${_gitbranch}"
55 msg "GIT checkout done or server timeout"
66 rm -rf "${srcdir}/${_gitname}_build/" || true
67 cp -r "${srcdir}/${_gitname}" "${srcdir}/${_gitname}_build"
69 cd "${srcdir}/${_gitname}_build/"
71 install -d "${srcdir}/${_gitname}_build/build-aux/" || true
72 install -D -m0755 "/usr/share/libtool/config/ltmain.sh" "${srcdir}/${_gitname}_build/build-aux/ltmain.sh"
77 mkdir -p "${srcdir}/${_gitname}_build/BUILD"
78 cd "${srcdir}/${_gitname}_build/BUILD"
80 CFLAGS="" ../configure \
81 --host="${CARCH}-unknown-linux-gnu" \
84 --sbindir="/usr/bin" \
85 --libexecdir="/usr/lib" \
87 --disable-silent-rules \
89 --enable-device-mapper \
90 --enable-dynamic-loading \
99 CFLAGS="" LDFLAGS="" make
106 cd "${srcdir}/${_gitname}_build/BUILD"
108 ## Normal test-suite for 512 byte sectors
112 ## Check whether test-suite works for 4K byte sectors - seems like already done by the top "make check" command
113 # PARTED_SECTOR_SIZE="4096" CK_FORK="no" make check
120 cd "${srcdir}/${_gitname}_build/BUILD"
122 make DESTDIR="${pkgdir}/" install