summaryrefslogtreecommitdiff
path: root/extra/parted
diff options
context:
space:
mode:
Diffstat (limited to 'extra/parted')
-rw-r--r--extra/parted/PKGBUILD5
-rw-r--r--extra/parted/linux.c.patch25
-rw-r--r--extra/parted/parted.install2
3 files changed, 4 insertions, 28 deletions
diff --git a/extra/parted/PKGBUILD b/extra/parted/PKGBUILD
index 7a9416441..a27cb8962 100644
--- a/extra/parted/PKGBUILD
+++ b/extra/parted/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 151858 2012-03-03 14:28:32Z giovanni $
+# $Id: PKGBUILD 185834 2013-05-19 14:21:08Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Aaron Griffin <aaron@archlinux.org>
pkgname=parted
pkgver=3.1
-pkgrel=1
+pkgrel=2
pkgdesc="A program for creating, destroying, resizing, checking and copying partitions"
arch=('i686' 'x86_64')
license=('GPL3')
@@ -20,6 +20,7 @@ build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr \
+ --sbindir=/usr/bin \
--disable-debug \
--disable-rpath
make
diff --git a/extra/parted/linux.c.patch b/extra/parted/linux.c.patch
deleted file mode 100644
index c9feea142..000000000
--- a/extra/parted/linux.c.patch
+++ /dev/null
@@ -1,25 +0,0 @@
---- a/libparted/arch/linux.c 2011-05-27 14:52:37.000000000 +0200
-+++ b/libparted/arch/linux.c 2011-07-29 20:25:38.000000000 +0200
-@@ -601,17 +601,17 @@
- static int kver = -1;
-
- struct utsname uts;
-- int major;
-- int minor;
-- int teeny;
-+ int major = 0;
-+ int minor = 0;
-+ int teeny = 0;
-
- if (kver != -1)
- return kver;
-
- if (uname (&uts))
- return kver = 0;
-- if (sscanf (uts.release, "%u.%u.%u", &major, &minor, &teeny) != 3)
-- return kver = 0;
-+ int n = sscanf (uts.release, "%u.%u.%u", &major, &minor, &teeny);
-+ assert (n == 2 || n == 3);
-
- return kver = KERNEL_VERSION (major, minor, teeny);
- }
diff --git a/extra/parted/parted.install b/extra/parted/parted.install
index 5e00699e8..752a6871b 100644
--- a/extra/parted/parted.install
+++ b/extra/parted/parted.install
@@ -8,7 +8,7 @@ post_install() {
}
post_upgrade() {
- post_install $1
+ post_install
}
pre_remove() {