summaryrefslogtreecommitdiff
path: root/extra/parted/PKGBUILD
blob: 6b32478c236f64659331f9cf23df61be73491c59 (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
# $Id: PKGBUILD 143925 2011-11-30 21:06:41Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Aaron Griffin <aaron@archlinux.org>

pkgname=parted
pkgver=3.0
pkgrel=4
pkgdesc="A program for creating, destroying, resizing, checking and copying partitions"
arch=('i686' 'x86_64')
license=('GPL3')
url="http://www.gnu.org/software/parted/parted.html"
depends=('device-mapper' 'e2fsprogs')
makedepends=('pkg-config')
options=('!libtool')
install=parted.install
source=("http://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz"
        'linux.c.patch')
md5sums=('c415e5c97f86b5ff65a2d925e5a3feb7'
         '08c942e212424e238271217f52c59706')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  # FS#25307
  patch -Np1 -i ${srcdir}/linux.c.patch

  ./configure --prefix=/usr \
              --disable-debug \
              --disable-rpath
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  make DESTDIR="${pkgdir}" install
}