1 # Maintainer : Keshav P R <(the.ridikulus.rat) (aatt) (gemmaeiil) (ddoott) (ccoomm)>
2 # Contributor: Evangelos Foutras <evangelos@foutrelis.com>
3 # Contributor: Tobias Powalowski <tpowa@archlinux.org>
4 # Contributor: Hokum <hokum_at_mail_dot_ru>
9 pkgname="${_pkgname}-git" ## For AUR interface
10 pkgbase="${_pkgname}-git" ## For split packages
12 true && pkgname=('gptfdisk-git' 'fixparts-git')
14 if [[ "${_ENABLE_UTF16LE}" == '0' ]]; then
15 true && pkgname=('gptfdisk-no_icu-git' 'fixparts-git')
20 arch=('i686' 'x86_64')
21 url="http://www.rodsbooks.com/gdisk"
22 makedepends=('util-linux' 'popt' 'ncurses')
24 if [[ "${_ENABLE_UTF16LE}" == '1' ]]; then
30 options=(strip emptydirs zipman !libtool docs)
32 source=('gptfdisk_remove_icu_UTF16LE.patch')
33 sha256sums=('ef8c30689d1d5da8506c2b02e9044033325e100d959116b43503e0211c89724f')
35 _gitroot="git://gptfdisk.git.sourceforge.net/gitroot/gptfdisk/gptfdisk"
36 _gitname="${_pkgname}"
43 msg "Connecting to GIT server...."
45 if [[ -d "${srcdir}/${_gitname}/" ]]; then
46 cd "${srcdir}/${_gitname}/"
49 git checkout "${_gitbranch}"
50 git merge "remotes/origin/${_gitbranch}"
51 msg "The local GIT repo has been updated."
53 git clone "${_gitroot}" "${_gitname}"
54 cd "${srcdir}/${_gitname}/"
55 git checkout "${_gitbranch}"
56 msg "GIT checkout done or server timeout"
67 rm -rf "${srcdir}/${_gitname}_build/" || true
68 cp -r "${srcdir}/${_gitname}" "${srcdir}/${_gitname}_build"
70 cd "${srcdir}/${_gitname}_build/"
80 CFLAGS="" CXXFLAGS="" LDFLAGS="" make
87 depends+=('util-linux' 'popt' 'ncurses')
89 if [[ "${_ENABLE_UTF16LE}" == '1' ]]; then
90 pkgdesc="Text-mode partitioning utilities that work on GUID Partition Table (GPT) disks - GIT version"
94 cd "${srcdir}/${_gitname}_build/"
96 if [[ "${_ENABLE_UTF16LE}" == '0' ]]; then
97 pkgdesc="Text-mode partitioning utilities that work on GUID Partition Table (GPT) disks - without UTF16LE support - GIT version"
98 patch -Np1 -i "${srcdir}/gptfdisk_remove_icu_UTF16LE.patch"
101 install -Dp -m0755 "${srcdir}/${_gitname}_build/gdisk" "${pkgdir}/usr/sbin/gdisk"
102 install -Dp -m0755 "${srcdir}/${_gitname}_build/sgdisk" "${pkgdir}/usr/sbin/sgdisk"
103 install -Dp -m0755 "${srcdir}/${_gitname}_build/cgdisk" "${pkgdir}/usr/sbin/cgdisk"
105 install -Dp -m0644 "${srcdir}/${_gitname}_build/gdisk.8" "${pkgdir}/usr/share/man/man8/gdisk.8"
106 install -Dp -m0644 "${srcdir}/${_gitname}_build/sgdisk.8" "${pkgdir}/usr/share/man/man8/sgdisk.8"
107 install -Dp -m0644 "${srcdir}/${_gitname}_build/cgdisk.8" "${pkgdir}/usr/share/man/man8/cgdisk.8"
109 install -Dp -m0644 "${srcdir}/${_gitname}_build/README" "${pkgdir}/usr/share/${_pkgname}/README"
110 install -Dp -m0644 "${srcdir}/${_gitname}_build/NEWS" "${pkgdir}/usr/share/${_pkgname}/NEWS"
114 package_gptfdisk-no_icu() {
116 conflicts+=('gptfdisk')
117 provides+=('gptfdisk')
125 pkgdesc="Text-mode utility that repairs MBR (msdos) partition table disks - GIT version"
127 cd "${srcdir}/${_gitname}_build/"
129 install -Dp -m0755 "${srcdir}/${_gitname}_build/fixparts" "${pkgdir}/usr/sbin/fixparts"
130 install -Dp -m0644 "${srcdir}/${_gitname}_build/fixparts.8" "${pkgdir}/usr/share/man/man8/fixparts.8"
134 package_gptfdisk-git() {
136 conflicts+=('gptfdisk')
137 provides+=('gptfdisk')
143 package_gptfdisk-no_icu-git() {
145 conflicts+=('gptfdisk-no_icu')
146 provides+=('gptfdisk-no_icu')
148 package_gptfdisk-no_icu
152 package_fixparts-git() {
154 conflicts+=('fixparts')
155 provides+=('fixparts')