[arch-commits] Commit in util-linux/trunk (PKGBUILD)

Tom Gundersen tomegun at archlinux.org
Fri Feb 24 08:42:51 EST 2012


    Date: Friday, February 24, 2012 @ 08:42:50
  Author: tomegun
Revision: 151029

upgpkg: util-linux 2.21-1

moved libs to /usr/lib

Modified:
  util-linux/trunk/PKGBUILD

----------+
 PKGBUILD |   24 +++++++++++++++---------
 1 file changed, 15 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-02-24 13:42:12 UTC (rev 151028)
+++ PKGBUILD	2012-02-24 13:42:50 UTC (rev 151029)
@@ -4,9 +4,9 @@
 
 pkgname=util-linux
 pkgver=2.21
-pkgrel=0.1
+pkgrel=1
 pkgdesc="Miscellaneous system utilities for Linux"
-url="http://userweb.kernel.org/~kzak/util-linux-ng/"
+url="http://www.kernel.org/pub/linux/utils/util-linux/"
 arch=('i686' 'x86_64')
 groups=('base')
 depends=('udev')
@@ -14,16 +14,17 @@
 provides=("util-linux-ng=${pkgver}")
 license=('GPL2')
 options=('!libtool')
-source=(ftp://ftp.kernel.org/pub/linux/utils/${pkgname}/v${pkgver}/${pkgname}-${pkgver}-rc1.tar.xz)
+source=(ftp://ftp.kernel.org/pub/linux/utils/${pkgname}/v${pkgver}/${pkgname}-${pkgver}.tar.xz)
 optdepends=('perl: for chkdupexe support')
 
 build() {
-  cd "${srcdir}/${pkgname}-${pkgver}-rc1"
+  cd "${srcdir}/${pkgname}-${pkgver}"
 
   # hardware clock
   sed -e 's%etc/adjtime%var/lib/hwclock/adjtime%' -i include/pathnames.h
 
-  ./configure --libdir=/usr/lib \
+  ./configure --prefix=/usr \
+              --libdir=/usr/lib \
               --enable-write \
               --enable-raw \
               --disable-wall \
@@ -33,10 +34,15 @@
 }
 
 package() {
-  cd "${srcdir}/${pkgname}-${pkgver}-rc1"
+  cd "${srcdir}/${pkgname}-${pkgver}"
 
-  install -dm755 "${pkgdir}/var/lib/hwclock"
+  make DESTDIR="${pkgdir}" install
 
-  make DESTDIR="${pkgdir}" install
+  cd "${pkgdir}"
+
+  install -dm755 var/lib/hwclock
+
+  # an empty stray dir
+  rm -r usr/share/man/ru
 }
-md5sums=('bbfefcb74a47d517a37d0668c38de2d4')
+md5sums=('208aa058f4117759d2939d1be7d662fc')



More information about the arch-commits mailing list